<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>xmpp.protocol</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="xmpp-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="xmpp-module.html">Package&nbsp;xmpp</a> ::
        Module&nbsp;protocol
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="xmpp.protocol-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="xmpp.protocol-module.html">Module xmpp.protocol</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment">##   protocol.py </tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##   Copyright (C) 2003-2005 Alexey "Snake" Nezhdanov</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##   This program is free software; you can redistribute it and/or modify</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##   it under the terms of the GNU General Public License as published by</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##   the Free Software Foundation; either version 2, or (at your option)</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##   any later version.</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##   This program is distributed in the hope that it will be useful,</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##   but WITHOUT ANY WARRANTY; without even the implied warranty of</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##   GNU General Public License for more details.</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-comment"># $Id: protocol.py,v 1.58 2007/05/13 17:55:46 normanr Exp $</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt class="py-docstring">Protocol module contains tools that is needed for processing of </tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt class="py-docstring">xmpp-related data structures.</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Module xmpp.simplexml=xmpp.simplexml-module.html"><a title="xmpp.simplexml" class="py-name" href="#" onclick="return doclink('link-0', 'simplexml', 'link-0');">simplexml</a></tt> <tt class="py-keyword">import</tt> <tt id="link-1" class="py-name" targets="Class xmpp.simplexml.Node=xmpp.simplexml.Node-class.html"><a title="xmpp.simplexml.Node" class="py-name" href="#" onclick="return doclink('link-1', 'Node', 'link-1');">Node</a></tt><tt class="py-op">,</tt><tt id="link-2" class="py-name" targets="Function xmpp.simplexml.ustr()=xmpp.simplexml-module.html#ustr"><a title="xmpp.simplexml.ustr" class="py-name" href="#" onclick="return doclink('link-2', 'ustr', 'link-2');">ustr</a></tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">time</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt id="link-3" class="py-name" targets="Variable xmpp.protocol.NS_ACTIVITY=xmpp.protocol-module.html#NS_ACTIVITY"><a title="xmpp.protocol.NS_ACTIVITY" class="py-name" href="#" onclick="return doclink('link-3', 'NS_ACTIVITY', 'link-3');">NS_ACTIVITY</a></tt>         <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/activity'</tt>                  <tt class="py-comment"># XEP-0108</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"><tt id="link-4" class="py-name" targets="Variable xmpp.protocol.NS_ADDRESS=xmpp.protocol-module.html#NS_ADDRESS"><a title="xmpp.protocol.NS_ADDRESS" class="py-name" href="#" onclick="return doclink('link-4', 'NS_ADDRESS', 'link-4');">NS_ADDRESS</a></tt>          <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/address'</tt>                   <tt class="py-comment"># XEP-0033</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt id="link-5" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN=xmpp.protocol-module.html#NS_ADMIN"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-5', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt>            <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/admin'</tt>                     <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"><tt id="link-6" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_ADD_USER=xmpp.protocol-module.html#NS_ADMIN_ADD_USER"><a title="xmpp.protocol.NS_ADMIN_ADD_USER" class="py-name" href="#" onclick="return doclink('link-6', 'NS_ADMIN_ADD_USER', 'link-6');">NS_ADMIN_ADD_USER</a></tt>               <tt class="py-op">=</tt><tt id="link-7" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-7', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#add-user'</tt>                       <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"><tt id="link-8" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_DELETE_USER=xmpp.protocol-module.html#NS_ADMIN_DELETE_USER"><a title="xmpp.protocol.NS_ADMIN_DELETE_USER" class="py-name" href="#" onclick="return doclink('link-8', 'NS_ADMIN_DELETE_USER', 'link-8');">NS_ADMIN_DELETE_USER</a></tt>            <tt class="py-op">=</tt><tt id="link-9" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-9', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#delete-user'</tt>                    <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"><tt id="link-10" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_DISABLE_USER=xmpp.protocol-module.html#NS_ADMIN_DISABLE_USER"><a title="xmpp.protocol.NS_ADMIN_DISABLE_USER" class="py-name" href="#" onclick="return doclink('link-10', 'NS_ADMIN_DISABLE_USER', 'link-10');">NS_ADMIN_DISABLE_USER</a></tt>           <tt class="py-op">=</tt><tt id="link-11" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-11', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#disable-user'</tt>                   <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line"><tt id="link-12" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_REENABLE_USER=xmpp.protocol-module.html#NS_ADMIN_REENABLE_USER"><a title="xmpp.protocol.NS_ADMIN_REENABLE_USER" class="py-name" href="#" onclick="return doclink('link-12', 'NS_ADMIN_REENABLE_USER', 'link-12');">NS_ADMIN_REENABLE_USER</a></tt>          <tt class="py-op">=</tt><tt id="link-13" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-13', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#reenable-user'</tt>                  <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line"><tt id="link-14" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_END_USER_SESSION=xmpp.protocol-module.html#NS_ADMIN_END_USER_SESSION"><a title="xmpp.protocol.NS_ADMIN_END_USER_SESSION" class="py-name" href="#" onclick="return doclink('link-14', 'NS_ADMIN_END_USER_SESSION', 'link-14');">NS_ADMIN_END_USER_SESSION</a></tt>       <tt class="py-op">=</tt><tt id="link-15" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-15', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#end-user-session'</tt>               <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line"><tt id="link-16" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_GET_USER_PASSWORD=xmpp.protocol-module.html#NS_ADMIN_GET_USER_PASSWORD"><a title="xmpp.protocol.NS_ADMIN_GET_USER_PASSWORD" class="py-name" href="#" onclick="return doclink('link-16', 'NS_ADMIN_GET_USER_PASSWORD', 'link-16');">NS_ADMIN_GET_USER_PASSWORD</a></tt>      <tt class="py-op">=</tt><tt id="link-17" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-17', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#get-user-password'</tt>              <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line"><tt id="link-18" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_CHANGE_USER_PASSWORD=xmpp.protocol-module.html#NS_ADMIN_CHANGE_USER_PASSWORD"><a title="xmpp.protocol.NS_ADMIN_CHANGE_USER_PASSWORD" class="py-name" href="#" onclick="return doclink('link-18', 'NS_ADMIN_CHANGE_USER_PASSWORD', 'link-18');">NS_ADMIN_CHANGE_USER_PASSWORD</a></tt>   <tt class="py-op">=</tt><tt id="link-19" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-19', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#change-user-password'</tt>           <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line"><tt id="link-20" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_GET_USER_ROSTER=xmpp.protocol-module.html#NS_ADMIN_GET_USER_ROSTER"><a title="xmpp.protocol.NS_ADMIN_GET_USER_ROSTER" class="py-name" href="#" onclick="return doclink('link-20', 'NS_ADMIN_GET_USER_ROSTER', 'link-20');">NS_ADMIN_GET_USER_ROSTER</a></tt>        <tt class="py-op">=</tt><tt id="link-21" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-21', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#get-user-roster'</tt>                <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line"><tt id="link-22" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_GET_USER_LASTLOGIN=xmpp.protocol-module.html#NS_ADMIN_GET_USER_LASTLOGIN"><a title="xmpp.protocol.NS_ADMIN_GET_USER_LASTLOGIN" class="py-name" href="#" onclick="return doclink('link-22', 'NS_ADMIN_GET_USER_LASTLOGIN', 'link-22');">NS_ADMIN_GET_USER_LASTLOGIN</a></tt>     <tt class="py-op">=</tt><tt id="link-23" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-23', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#get-user-lastlogin'</tt>             <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line"><tt id="link-24" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_USER_STATS=xmpp.protocol-module.html#NS_ADMIN_USER_STATS"><a title="xmpp.protocol.NS_ADMIN_USER_STATS" class="py-name" href="#" onclick="return doclink('link-24', 'NS_ADMIN_USER_STATS', 'link-24');">NS_ADMIN_USER_STATS</a></tt>             <tt class="py-op">=</tt><tt id="link-25" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-25', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#user-stats'</tt>                     <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line"><tt id="link-26" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_EDIT_BLACKLIST=xmpp.protocol-module.html#NS_ADMIN_EDIT_BLACKLIST"><a title="xmpp.protocol.NS_ADMIN_EDIT_BLACKLIST" class="py-name" href="#" onclick="return doclink('link-26', 'NS_ADMIN_EDIT_BLACKLIST', 'link-26');">NS_ADMIN_EDIT_BLACKLIST</a></tt>         <tt class="py-op">=</tt><tt id="link-27" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-27', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#edit-blacklist'</tt>                 <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line"><tt id="link-28" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_EDIT_WHITELIST=xmpp.protocol-module.html#NS_ADMIN_EDIT_WHITELIST"><a title="xmpp.protocol.NS_ADMIN_EDIT_WHITELIST" class="py-name" href="#" onclick="return doclink('link-28', 'NS_ADMIN_EDIT_WHITELIST', 'link-28');">NS_ADMIN_EDIT_WHITELIST</a></tt>         <tt class="py-op">=</tt><tt id="link-29" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-29', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#edit-whitelist'</tt>                 <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line"><tt id="link-30" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_REGISTERED_USERS_NUM=xmpp.protocol-module.html#NS_ADMIN_REGISTERED_USERS_NUM"><a title="xmpp.protocol.NS_ADMIN_REGISTERED_USERS_NUM" class="py-name" href="#" onclick="return doclink('link-30', 'NS_ADMIN_REGISTERED_USERS_NUM', 'link-30');">NS_ADMIN_REGISTERED_USERS_NUM</a></tt>   <tt class="py-op">=</tt><tt id="link-31" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-31', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#get-registered-users-num'</tt>       <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line"><tt id="link-32" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_DISABLED_USERS_NUM=xmpp.protocol-module.html#NS_ADMIN_DISABLED_USERS_NUM"><a title="xmpp.protocol.NS_ADMIN_DISABLED_USERS_NUM" class="py-name" href="#" onclick="return doclink('link-32', 'NS_ADMIN_DISABLED_USERS_NUM', 'link-32');">NS_ADMIN_DISABLED_USERS_NUM</a></tt>     <tt class="py-op">=</tt><tt id="link-33" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-33', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#get-disabled-users-num'</tt>         <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line"><tt id="link-34" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_ONLINE_USERS_NUM=xmpp.protocol-module.html#NS_ADMIN_ONLINE_USERS_NUM"><a title="xmpp.protocol.NS_ADMIN_ONLINE_USERS_NUM" class="py-name" href="#" onclick="return doclink('link-34', 'NS_ADMIN_ONLINE_USERS_NUM', 'link-34');">NS_ADMIN_ONLINE_USERS_NUM</a></tt>       <tt class="py-op">=</tt><tt id="link-35" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-35', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#get-online-users-num'</tt>           <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line"><tt id="link-36" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_ACTIVE_USERS_NUM=xmpp.protocol-module.html#NS_ADMIN_ACTIVE_USERS_NUM"><a title="xmpp.protocol.NS_ADMIN_ACTIVE_USERS_NUM" class="py-name" href="#" onclick="return doclink('link-36', 'NS_ADMIN_ACTIVE_USERS_NUM', 'link-36');">NS_ADMIN_ACTIVE_USERS_NUM</a></tt>       <tt class="py-op">=</tt><tt id="link-37" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-37', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#get-active-users-num'</tt>           <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line"><tt id="link-38" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_IDLE_USERS_NUM=xmpp.protocol-module.html#NS_ADMIN_IDLE_USERS_NUM"><a title="xmpp.protocol.NS_ADMIN_IDLE_USERS_NUM" class="py-name" href="#" onclick="return doclink('link-38', 'NS_ADMIN_IDLE_USERS_NUM', 'link-38');">NS_ADMIN_IDLE_USERS_NUM</a></tt>         <tt class="py-op">=</tt><tt id="link-39" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-39', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#get-idle-users-num'</tt>             <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line"><tt id="link-40" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_REGISTERED_USERS_LIST=xmpp.protocol-module.html#NS_ADMIN_REGISTERED_USERS_LIST"><a title="xmpp.protocol.NS_ADMIN_REGISTERED_USERS_LIST" class="py-name" href="#" onclick="return doclink('link-40', 'NS_ADMIN_REGISTERED_USERS_LIST', 'link-40');">NS_ADMIN_REGISTERED_USERS_LIST</a></tt>  <tt class="py-op">=</tt><tt id="link-41" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-41', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#get-registered-users-list'</tt>      <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line"><tt id="link-42" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_DISABLED_USERS_LIST=xmpp.protocol-module.html#NS_ADMIN_DISABLED_USERS_LIST"><a title="xmpp.protocol.NS_ADMIN_DISABLED_USERS_LIST" class="py-name" href="#" onclick="return doclink('link-42', 'NS_ADMIN_DISABLED_USERS_LIST', 'link-42');">NS_ADMIN_DISABLED_USERS_LIST</a></tt>    <tt class="py-op">=</tt><tt id="link-43" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-43', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#get-disabled-users-list'</tt>        <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line"><tt id="link-44" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_ONLINE_USERS_LIST=xmpp.protocol-module.html#NS_ADMIN_ONLINE_USERS_LIST"><a title="xmpp.protocol.NS_ADMIN_ONLINE_USERS_LIST" class="py-name" href="#" onclick="return doclink('link-44', 'NS_ADMIN_ONLINE_USERS_LIST', 'link-44');">NS_ADMIN_ONLINE_USERS_LIST</a></tt>      <tt class="py-op">=</tt><tt id="link-45" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-45', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#get-online-users-list'</tt>          <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line"><tt id="link-46" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_ACTIVE_USERS_LIST=xmpp.protocol-module.html#NS_ADMIN_ACTIVE_USERS_LIST"><a title="xmpp.protocol.NS_ADMIN_ACTIVE_USERS_LIST" class="py-name" href="#" onclick="return doclink('link-46', 'NS_ADMIN_ACTIVE_USERS_LIST', 'link-46');">NS_ADMIN_ACTIVE_USERS_LIST</a></tt>      <tt class="py-op">=</tt><tt id="link-47" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-47', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#get-active-users-list'</tt>          <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line"><tt id="link-48" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_IDLE_USERS_LIST=xmpp.protocol-module.html#NS_ADMIN_IDLE_USERS_LIST"><a title="xmpp.protocol.NS_ADMIN_IDLE_USERS_LIST" class="py-name" href="#" onclick="return doclink('link-48', 'NS_ADMIN_IDLE_USERS_LIST', 'link-48');">NS_ADMIN_IDLE_USERS_LIST</a></tt>        <tt class="py-op">=</tt><tt id="link-49" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-49', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#get-idle-users-list'</tt>            <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line"><tt id="link-50" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_ANNOUNCE=xmpp.protocol-module.html#NS_ADMIN_ANNOUNCE"><a title="xmpp.protocol.NS_ADMIN_ANNOUNCE" class="py-name" href="#" onclick="return doclink('link-50', 'NS_ADMIN_ANNOUNCE', 'link-50');">NS_ADMIN_ANNOUNCE</a></tt>               <tt class="py-op">=</tt><tt id="link-51" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-51', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#announce'</tt>                       <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line"><tt id="link-52" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_SET_MOTD=xmpp.protocol-module.html#NS_ADMIN_SET_MOTD"><a title="xmpp.protocol.NS_ADMIN_SET_MOTD" class="py-name" href="#" onclick="return doclink('link-52', 'NS_ADMIN_SET_MOTD', 'link-52');">NS_ADMIN_SET_MOTD</a></tt>               <tt class="py-op">=</tt><tt id="link-53" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-53', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#set-motd'</tt>                       <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line"><tt id="link-54" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_EDIT_MOTD=xmpp.protocol-module.html#NS_ADMIN_EDIT_MOTD"><a title="xmpp.protocol.NS_ADMIN_EDIT_MOTD" class="py-name" href="#" onclick="return doclink('link-54', 'NS_ADMIN_EDIT_MOTD', 'link-54');">NS_ADMIN_EDIT_MOTD</a></tt>              <tt class="py-op">=</tt><tt id="link-55" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-55', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#edit-motd'</tt>                      <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line"><tt id="link-56" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_DELETE_MOTD=xmpp.protocol-module.html#NS_ADMIN_DELETE_MOTD"><a title="xmpp.protocol.NS_ADMIN_DELETE_MOTD" class="py-name" href="#" onclick="return doclink('link-56', 'NS_ADMIN_DELETE_MOTD', 'link-56');">NS_ADMIN_DELETE_MOTD</a></tt>            <tt class="py-op">=</tt><tt id="link-57" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-57', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#delete-motd'</tt>                    <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line"><tt id="link-58" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_SET_WELCOME=xmpp.protocol-module.html#NS_ADMIN_SET_WELCOME"><a title="xmpp.protocol.NS_ADMIN_SET_WELCOME" class="py-name" href="#" onclick="return doclink('link-58', 'NS_ADMIN_SET_WELCOME', 'link-58');">NS_ADMIN_SET_WELCOME</a></tt>            <tt class="py-op">=</tt><tt id="link-59" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-59', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#set-welcome'</tt>                    <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line"><tt id="link-60" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_DELETE_WELCOME=xmpp.protocol-module.html#NS_ADMIN_DELETE_WELCOME"><a title="xmpp.protocol.NS_ADMIN_DELETE_WELCOME" class="py-name" href="#" onclick="return doclink('link-60', 'NS_ADMIN_DELETE_WELCOME', 'link-60');">NS_ADMIN_DELETE_WELCOME</a></tt>         <tt class="py-op">=</tt><tt id="link-61" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-61', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#delete-welcome'</tt>                 <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line"><tt id="link-62" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_EDIT_ADMIN=xmpp.protocol-module.html#NS_ADMIN_EDIT_ADMIN"><a title="xmpp.protocol.NS_ADMIN_EDIT_ADMIN" class="py-name" href="#" onclick="return doclink('link-62', 'NS_ADMIN_EDIT_ADMIN', 'link-62');">NS_ADMIN_EDIT_ADMIN</a></tt>             <tt class="py-op">=</tt><tt id="link-63" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-63', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#edit-admin'</tt>                     <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line"><tt id="link-64" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_RESTART=xmpp.protocol-module.html#NS_ADMIN_RESTART"><a title="xmpp.protocol.NS_ADMIN_RESTART" class="py-name" href="#" onclick="return doclink('link-64', 'NS_ADMIN_RESTART', 'link-64');">NS_ADMIN_RESTART</a></tt>                <tt class="py-op">=</tt><tt id="link-65" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-65', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#restart'</tt>                        <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line"><tt id="link-66" class="py-name" targets="Variable xmpp.protocol.NS_ADMIN_SHUTDOWN=xmpp.protocol-module.html#NS_ADMIN_SHUTDOWN"><a title="xmpp.protocol.NS_ADMIN_SHUTDOWN" class="py-name" href="#" onclick="return doclink('link-66', 'NS_ADMIN_SHUTDOWN', 'link-66');">NS_ADMIN_SHUTDOWN</a></tt>               <tt class="py-op">=</tt><tt id="link-67" class="py-name"><a title="xmpp.protocol.NS_ADMIN" class="py-name" href="#" onclick="return doclink('link-67', 'NS_ADMIN', 'link-5');">NS_ADMIN</a></tt><tt class="py-op">+</tt><tt class="py-string">'#shutdown'</tt>                       <tt class="py-comment"># XEP-0133</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line"><tt id="link-68" class="py-name" targets="Variable xmpp.protocol.NS_AGENTS=xmpp.protocol-module.html#NS_AGENTS"><a title="xmpp.protocol.NS_AGENTS" class="py-name" href="#" onclick="return doclink('link-68', 'NS_AGENTS', 'link-68');">NS_AGENTS</a></tt>           <tt class="py-op">=</tt><tt class="py-string">'jabber:iq:agents'</tt>                                     <tt class="py-comment"># XEP-0094 (historical)</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line"><tt id="link-69" class="py-name" targets="Variable xmpp.protocol.NS_AMP=xmpp.protocol-module.html#NS_AMP"><a title="xmpp.protocol.NS_AMP" class="py-name" href="#" onclick="return doclink('link-69', 'NS_AMP', 'link-69');">NS_AMP</a></tt>              <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/amp'</tt>                       <tt class="py-comment"># XEP-0079</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line"><tt id="link-70" class="py-name" targets="Variable xmpp.protocol.NS_AMP_ERRORS=xmpp.protocol-module.html#NS_AMP_ERRORS"><a title="xmpp.protocol.NS_AMP_ERRORS" class="py-name" href="#" onclick="return doclink('link-70', 'NS_AMP_ERRORS', 'link-70');">NS_AMP_ERRORS</a></tt>                   <tt class="py-op">=</tt><tt id="link-71" class="py-name"><a title="xmpp.protocol.NS_AMP" class="py-name" href="#" onclick="return doclink('link-71', 'NS_AMP', 'link-69');">NS_AMP</a></tt><tt class="py-op">+</tt><tt class="py-string">'#errors'</tt>                           <tt class="py-comment"># XEP-0079</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line"><tt id="link-72" class="py-name" targets="Variable xmpp.protocol.NS_AUTH=xmpp.protocol-module.html#NS_AUTH"><a title="xmpp.protocol.NS_AUTH" class="py-name" href="#" onclick="return doclink('link-72', 'NS_AUTH', 'link-72');">NS_AUTH</a></tt>             <tt class="py-op">=</tt><tt class="py-string">'jabber:iq:auth'</tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line"><tt id="link-73" class="py-name" targets="Variable xmpp.protocol.NS_AVATAR=xmpp.protocol-module.html#NS_AVATAR"><a title="xmpp.protocol.NS_AVATAR" class="py-name" href="#" onclick="return doclink('link-73', 'NS_AVATAR', 'link-73');">NS_AVATAR</a></tt>           <tt class="py-op">=</tt><tt class="py-string">'jabber:iq:avatar'</tt>                                     <tt class="py-comment"># XEP-0008 (historical)</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line"><tt id="link-74" class="py-name" targets="Variable xmpp.protocol.NS_BIND=xmpp.protocol-module.html#NS_BIND"><a title="xmpp.protocol.NS_BIND" class="py-name" href="#" onclick="return doclink('link-74', 'NS_BIND', 'link-74');">NS_BIND</a></tt>             <tt class="py-op">=</tt><tt class="py-string">'urn:ietf:params:xml:ns:xmpp-bind'</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line"><tt id="link-75" class="py-name" targets="Variable xmpp.protocol.NS_BROWSE=xmpp.protocol-module.html#NS_BROWSE"><a title="xmpp.protocol.NS_BROWSE" class="py-name" href="#" onclick="return doclink('link-75', 'NS_BROWSE', 'link-75');">NS_BROWSE</a></tt>           <tt class="py-op">=</tt><tt class="py-string">'jabber:iq:browse'</tt>                                     <tt class="py-comment"># XEP-0011 (historical)</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line"><tt id="link-76" class="py-name" targets="Variable xmpp.protocol.NS_BYTESTREAM=xmpp.protocol-module.html#NS_BYTESTREAM"><a title="xmpp.protocol.NS_BYTESTREAM" class="py-name" href="#" onclick="return doclink('link-76', 'NS_BYTESTREAM', 'link-76');">NS_BYTESTREAM</a></tt>       <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/bytestreams'</tt>               <tt class="py-comment"># XEP-0065</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line"><tt id="link-77" class="py-name" targets="Variable xmpp.protocol.NS_CAPS=xmpp.protocol-module.html#NS_CAPS"><a title="xmpp.protocol.NS_CAPS" class="py-name" href="#" onclick="return doclink('link-77', 'NS_CAPS', 'link-77');">NS_CAPS</a></tt>             <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/caps'</tt>                      <tt class="py-comment"># XEP-0115</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line"><tt id="link-78" class="py-name" targets="Variable xmpp.protocol.NS_CHATSTATES=xmpp.protocol-module.html#NS_CHATSTATES"><a title="xmpp.protocol.NS_CHATSTATES" class="py-name" href="#" onclick="return doclink('link-78', 'NS_CHATSTATES', 'link-78');">NS_CHATSTATES</a></tt>       <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/chatstates'</tt>                <tt class="py-comment"># XEP-0085</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line"><tt id="link-79" class="py-name" targets="Variable xmpp.protocol.NS_CLIENT=xmpp.protocol-module.html#NS_CLIENT"><a title="xmpp.protocol.NS_CLIENT" class="py-name" href="#" onclick="return doclink('link-79', 'NS_CLIENT', 'link-79');">NS_CLIENT</a></tt>           <tt class="py-op">=</tt><tt class="py-string">'jabber:client'</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line"><tt id="link-80" class="py-name" targets="Variable xmpp.protocol.NS_COMMANDS=xmpp.protocol-module.html#NS_COMMANDS"><a title="xmpp.protocol.NS_COMMANDS" class="py-name" href="#" onclick="return doclink('link-80', 'NS_COMMANDS', 'link-80');">NS_COMMANDS</a></tt>         <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/commands'</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line"><tt id="link-81" class="py-name" targets="Variable xmpp.protocol.NS_COMPONENT_ACCEPT=xmpp.protocol-module.html#NS_COMPONENT_ACCEPT"><a title="xmpp.protocol.NS_COMPONENT_ACCEPT" class="py-name" href="#" onclick="return doclink('link-81', 'NS_COMPONENT_ACCEPT', 'link-81');">NS_COMPONENT_ACCEPT</a></tt> <tt class="py-op">=</tt><tt class="py-string">'jabber:component:accept'</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line"><tt id="link-82" class="py-name" targets="Variable xmpp.protocol.NS_COMPONENT_1=xmpp.protocol-module.html#NS_COMPONENT_1"><a title="xmpp.protocol.NS_COMPONENT_1" class="py-name" href="#" onclick="return doclink('link-82', 'NS_COMPONENT_1', 'link-82');">NS_COMPONENT_1</a></tt>      <tt class="py-op">=</tt><tt class="py-string">'http://jabberd.jabberstudio.org/ns/component/1.0'</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line"><tt id="link-83" class="py-name" targets="Variable xmpp.protocol.NS_COMPRESS=xmpp.protocol-module.html#NS_COMPRESS"><a title="xmpp.protocol.NS_COMPRESS" class="py-name" href="#" onclick="return doclink('link-83', 'NS_COMPRESS', 'link-83');">NS_COMPRESS</a></tt>         <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/compress'</tt>                  <tt class="py-comment"># XEP-0138</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line"><tt id="link-84" class="py-name" targets="Variable xmpp.protocol.NS_DATA=xmpp.protocol-module.html#NS_DATA"><a title="xmpp.protocol.NS_DATA" class="py-name" href="#" onclick="return doclink('link-84', 'NS_DATA', 'link-84');">NS_DATA</a></tt>             <tt class="py-op">=</tt><tt class="py-string">'jabber:x:data'</tt>                                        <tt class="py-comment"># XEP-0004</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line"><tt id="link-85" class="py-name" targets="Variable xmpp.protocol.NS_DELAY=xmpp.protocol-module.html#NS_DELAY"><a title="xmpp.protocol.NS_DELAY" class="py-name" href="#" onclick="return doclink('link-85', 'NS_DELAY', 'link-85');">NS_DELAY</a></tt>            <tt class="py-op">=</tt><tt class="py-string">'jabber:x:delay'</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line"><tt id="link-86" class="py-name" targets="Variable xmpp.protocol.NS_DIALBACK=xmpp.protocol-module.html#NS_DIALBACK"><a title="xmpp.protocol.NS_DIALBACK" class="py-name" href="#" onclick="return doclink('link-86', 'NS_DIALBACK', 'link-86');">NS_DIALBACK</a></tt>         <tt class="py-op">=</tt><tt class="py-string">'jabber:server:dialback'</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line"><tt id="link-87" class="py-name" targets="Variable xmpp.protocol.NS_DISCO=xmpp.protocol-module.html#NS_DISCO"><a title="xmpp.protocol.NS_DISCO" class="py-name" href="#" onclick="return doclink('link-87', 'NS_DISCO', 'link-87');">NS_DISCO</a></tt>            <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/disco'</tt>                     <tt class="py-comment"># XEP-0030</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line"><tt id="link-88" class="py-name" targets="Variable xmpp.protocol.NS_DISCO_INFO=xmpp.protocol-module.html#NS_DISCO_INFO"><a title="xmpp.protocol.NS_DISCO_INFO" class="py-name" href="#" onclick="return doclink('link-88', 'NS_DISCO_INFO', 'link-88');">NS_DISCO_INFO</a></tt>                   <tt class="py-op">=</tt><tt id="link-89" class="py-name"><a title="xmpp.protocol.NS_DISCO" class="py-name" href="#" onclick="return doclink('link-89', 'NS_DISCO', 'link-87');">NS_DISCO</a></tt><tt class="py-op">+</tt><tt class="py-string">'#info'</tt>                           <tt class="py-comment"># XEP-0030</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line"><tt id="link-90" class="py-name" targets="Variable xmpp.protocol.NS_DISCO_ITEMS=xmpp.protocol-module.html#NS_DISCO_ITEMS"><a title="xmpp.protocol.NS_DISCO_ITEMS" class="py-name" href="#" onclick="return doclink('link-90', 'NS_DISCO_ITEMS', 'link-90');">NS_DISCO_ITEMS</a></tt>                  <tt class="py-op">=</tt><tt id="link-91" class="py-name"><a title="xmpp.protocol.NS_DISCO" class="py-name" href="#" onclick="return doclink('link-91', 'NS_DISCO', 'link-87');">NS_DISCO</a></tt><tt class="py-op">+</tt><tt class="py-string">'#items'</tt>                          <tt class="py-comment"># XEP-0030</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line"><tt id="link-92" class="py-name" targets="Variable xmpp.protocol.NS_ENCRYPTED=xmpp.protocol-module.html#NS_ENCRYPTED"><a title="xmpp.protocol.NS_ENCRYPTED" class="py-name" href="#" onclick="return doclink('link-92', 'NS_ENCRYPTED', 'link-92');">NS_ENCRYPTED</a></tt>        <tt class="py-op">=</tt><tt class="py-string">'jabber:x:encrypted'</tt>                                   <tt class="py-comment"># XEP-0027</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line"><tt id="link-93" class="py-name" targets="Variable xmpp.protocol.NS_EVENT=xmpp.protocol-module.html#NS_EVENT"><a title="xmpp.protocol.NS_EVENT" class="py-name" href="#" onclick="return doclink('link-93', 'NS_EVENT', 'link-93');">NS_EVENT</a></tt>            <tt class="py-op">=</tt><tt class="py-string">'jabber:x:event'</tt>                                       <tt class="py-comment"># XEP-0022</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line"><tt id="link-94" class="py-name" targets="Variable xmpp.protocol.NS_FEATURE=xmpp.protocol-module.html#NS_FEATURE"><a title="xmpp.protocol.NS_FEATURE" class="py-name" href="#" onclick="return doclink('link-94', 'NS_FEATURE', 'link-94');">NS_FEATURE</a></tt>          <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/feature-neg'</tt>   </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line"><tt id="link-95" class="py-name" targets="Variable xmpp.protocol.NS_FILE=xmpp.protocol-module.html#NS_FILE"><a title="xmpp.protocol.NS_FILE" class="py-name" href="#" onclick="return doclink('link-95', 'NS_FILE', 'link-95');">NS_FILE</a></tt>             <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/si/profile/file-transfer'</tt>  <tt class="py-comment"># XEP-0096</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line"><tt id="link-96" class="py-name" targets="Variable xmpp.protocol.NS_GATEWAY=xmpp.protocol-module.html#NS_GATEWAY"><a title="xmpp.protocol.NS_GATEWAY" class="py-name" href="#" onclick="return doclink('link-96', 'NS_GATEWAY', 'link-96');">NS_GATEWAY</a></tt>          <tt class="py-op">=</tt><tt class="py-string">'jabber:iq:gateway'</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line"><tt id="link-97" class="py-name" targets="Variable xmpp.protocol.NS_GEOLOC=xmpp.protocol-module.html#NS_GEOLOC"><a title="xmpp.protocol.NS_GEOLOC" class="py-name" href="#" onclick="return doclink('link-97', 'NS_GEOLOC', 'link-97');">NS_GEOLOC</a></tt>           <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/geoloc'</tt>                    <tt class="py-comment"># XEP-0080</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line"><tt id="link-98" class="py-name" targets="Variable xmpp.protocol.NS_GROUPCHAT=xmpp.protocol-module.html#NS_GROUPCHAT"><a title="xmpp.protocol.NS_GROUPCHAT" class="py-name" href="#" onclick="return doclink('link-98', 'NS_GROUPCHAT', 'link-98');">NS_GROUPCHAT</a></tt>        <tt class="py-op">=</tt><tt class="py-string">'gc-1.0'</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line"><tt id="link-99" class="py-name" targets="Variable xmpp.protocol.NS_HTTP_BIND=xmpp.protocol-module.html#NS_HTTP_BIND"><a title="xmpp.protocol.NS_HTTP_BIND" class="py-name" href="#" onclick="return doclink('link-99', 'NS_HTTP_BIND', 'link-99');">NS_HTTP_BIND</a></tt>        <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/httpbind'</tt>                  <tt class="py-comment"># XEP-0124</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line"><tt id="link-100" class="py-name" targets="Variable xmpp.protocol.NS_IBB=xmpp.protocol-module.html#NS_IBB"><a title="xmpp.protocol.NS_IBB" class="py-name" href="#" onclick="return doclink('link-100', 'NS_IBB', 'link-100');">NS_IBB</a></tt>              <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/ibb'</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line"><tt id="link-101" class="py-name" targets="Variable xmpp.protocol.NS_INVISIBLE=xmpp.protocol-module.html#NS_INVISIBLE"><a title="xmpp.protocol.NS_INVISIBLE" class="py-name" href="#" onclick="return doclink('link-101', 'NS_INVISIBLE', 'link-101');">NS_INVISIBLE</a></tt>        <tt class="py-op">=</tt><tt class="py-string">'presence-invisible'</tt>                                   <tt class="py-comment"># Jabberd2</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line"><tt id="link-102" class="py-name" targets="Variable xmpp.protocol.NS_IQ=xmpp.protocol-module.html#NS_IQ"><a title="xmpp.protocol.NS_IQ" class="py-name" href="#" onclick="return doclink('link-102', 'NS_IQ', 'link-102');">NS_IQ</a></tt>               <tt class="py-op">=</tt><tt class="py-string">'iq'</tt>                                                   <tt class="py-comment"># Jabberd2</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line"><tt id="link-103" class="py-name" targets="Variable xmpp.protocol.NS_LAST=xmpp.protocol-module.html#NS_LAST"><a title="xmpp.protocol.NS_LAST" class="py-name" href="#" onclick="return doclink('link-103', 'NS_LAST', 'link-103');">NS_LAST</a></tt>             <tt class="py-op">=</tt><tt class="py-string">'jabber:iq:last'</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line"><tt id="link-104" class="py-name" targets="Variable xmpp.protocol.NS_MESSAGE=xmpp.protocol-module.html#NS_MESSAGE"><a title="xmpp.protocol.NS_MESSAGE" class="py-name" href="#" onclick="return doclink('link-104', 'NS_MESSAGE', 'link-104');">NS_MESSAGE</a></tt>          <tt class="py-op">=</tt><tt class="py-string">'message'</tt>                                              <tt class="py-comment"># Jabberd2</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line"><tt id="link-105" class="py-name" targets="Variable xmpp.protocol.NS_MOOD=xmpp.protocol-module.html#NS_MOOD"><a title="xmpp.protocol.NS_MOOD" class="py-name" href="#" onclick="return doclink('link-105', 'NS_MOOD', 'link-105');">NS_MOOD</a></tt>             <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/mood'</tt>                      <tt class="py-comment"># XEP-0107</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line"><tt id="link-106" class="py-name" targets="Variable xmpp.protocol.NS_MUC=xmpp.protocol-module.html#NS_MUC"><a title="xmpp.protocol.NS_MUC" class="py-name" href="#" onclick="return doclink('link-106', 'NS_MUC', 'link-106');">NS_MUC</a></tt>              <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/muc'</tt>                       <tt class="py-comment"># XEP-0045</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line"><tt id="link-107" class="py-name" targets="Variable xmpp.protocol.NS_MUC_ADMIN=xmpp.protocol-module.html#NS_MUC_ADMIN"><a title="xmpp.protocol.NS_MUC_ADMIN" class="py-name" href="#" onclick="return doclink('link-107', 'NS_MUC_ADMIN', 'link-107');">NS_MUC_ADMIN</a></tt>                    <tt class="py-op">=</tt><tt id="link-108" class="py-name"><a title="xmpp.protocol.NS_MUC" class="py-name" href="#" onclick="return doclink('link-108', 'NS_MUC', 'link-106');">NS_MUC</a></tt><tt class="py-op">+</tt><tt class="py-string">'#admin'</tt>                            <tt class="py-comment"># XEP-0045</tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line"><tt id="link-109" class="py-name" targets="Variable xmpp.protocol.NS_MUC_OWNER=xmpp.protocol-module.html#NS_MUC_OWNER"><a title="xmpp.protocol.NS_MUC_OWNER" class="py-name" href="#" onclick="return doclink('link-109', 'NS_MUC_OWNER', 'link-109');">NS_MUC_OWNER</a></tt>                    <tt class="py-op">=</tt><tt id="link-110" class="py-name"><a title="xmpp.protocol.NS_MUC" class="py-name" href="#" onclick="return doclink('link-110', 'NS_MUC', 'link-106');">NS_MUC</a></tt><tt class="py-op">+</tt><tt class="py-string">'#owner'</tt>                            <tt class="py-comment"># XEP-0045</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line"><tt id="link-111" class="py-name" targets="Variable xmpp.protocol.NS_MUC_UNIQUE=xmpp.protocol-module.html#NS_MUC_UNIQUE"><a title="xmpp.protocol.NS_MUC_UNIQUE" class="py-name" href="#" onclick="return doclink('link-111', 'NS_MUC_UNIQUE', 'link-111');">NS_MUC_UNIQUE</a></tt>                   <tt class="py-op">=</tt><tt id="link-112" class="py-name"><a title="xmpp.protocol.NS_MUC" class="py-name" href="#" onclick="return doclink('link-112', 'NS_MUC', 'link-106');">NS_MUC</a></tt><tt class="py-op">+</tt><tt class="py-string">'#unique'</tt>                           <tt class="py-comment"># XEP-0045</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line"><tt id="link-113" class="py-name" targets="Variable xmpp.protocol.NS_MUC_USER=xmpp.protocol-module.html#NS_MUC_USER"><a title="xmpp.protocol.NS_MUC_USER" class="py-name" href="#" onclick="return doclink('link-113', 'NS_MUC_USER', 'link-113');">NS_MUC_USER</a></tt>                     <tt class="py-op">=</tt><tt id="link-114" class="py-name"><a title="xmpp.protocol.NS_MUC" class="py-name" href="#" onclick="return doclink('link-114', 'NS_MUC', 'link-106');">NS_MUC</a></tt><tt class="py-op">+</tt><tt class="py-string">'#user'</tt>                             <tt class="py-comment"># XEP-0045</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line"><tt id="link-115" class="py-name" targets="Variable xmpp.protocol.NS_MUC_REGISTER=xmpp.protocol-module.html#NS_MUC_REGISTER"><a title="xmpp.protocol.NS_MUC_REGISTER" class="py-name" href="#" onclick="return doclink('link-115', 'NS_MUC_REGISTER', 'link-115');">NS_MUC_REGISTER</a></tt>                 <tt class="py-op">=</tt><tt id="link-116" class="py-name"><a title="xmpp.protocol.NS_MUC" class="py-name" href="#" onclick="return doclink('link-116', 'NS_MUC', 'link-106');">NS_MUC</a></tt><tt class="py-op">+</tt><tt class="py-string">'#register'</tt>                         <tt class="py-comment"># XEP-0045</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line"><tt id="link-117" class="py-name" targets="Variable xmpp.protocol.NS_MUC_REQUEST=xmpp.protocol-module.html#NS_MUC_REQUEST"><a title="xmpp.protocol.NS_MUC_REQUEST" class="py-name" href="#" onclick="return doclink('link-117', 'NS_MUC_REQUEST', 'link-117');">NS_MUC_REQUEST</a></tt>                  <tt class="py-op">=</tt><tt id="link-118" class="py-name"><a title="xmpp.protocol.NS_MUC" class="py-name" href="#" onclick="return doclink('link-118', 'NS_MUC', 'link-106');">NS_MUC</a></tt><tt class="py-op">+</tt><tt class="py-string">'#request'</tt>                          <tt class="py-comment"># XEP-0045</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line"><tt id="link-119" class="py-name" targets="Variable xmpp.protocol.NS_MUC_ROOMCONFIG=xmpp.protocol-module.html#NS_MUC_ROOMCONFIG"><a title="xmpp.protocol.NS_MUC_ROOMCONFIG" class="py-name" href="#" onclick="return doclink('link-119', 'NS_MUC_ROOMCONFIG', 'link-119');">NS_MUC_ROOMCONFIG</a></tt>               <tt class="py-op">=</tt><tt id="link-120" class="py-name"><a title="xmpp.protocol.NS_MUC" class="py-name" href="#" onclick="return doclink('link-120', 'NS_MUC', 'link-106');">NS_MUC</a></tt><tt class="py-op">+</tt><tt class="py-string">'#roomconfig'</tt>                       <tt class="py-comment"># XEP-0045</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line"><tt id="link-121" class="py-name" targets="Variable xmpp.protocol.NS_MUC_ROOMINFO=xmpp.protocol-module.html#NS_MUC_ROOMINFO"><a title="xmpp.protocol.NS_MUC_ROOMINFO" class="py-name" href="#" onclick="return doclink('link-121', 'NS_MUC_ROOMINFO', 'link-121');">NS_MUC_ROOMINFO</a></tt>                 <tt class="py-op">=</tt><tt id="link-122" class="py-name"><a title="xmpp.protocol.NS_MUC" class="py-name" href="#" onclick="return doclink('link-122', 'NS_MUC', 'link-106');">NS_MUC</a></tt><tt class="py-op">+</tt><tt class="py-string">'#roominfo'</tt>                         <tt class="py-comment"># XEP-0045</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line"><tt id="link-123" class="py-name" targets="Variable xmpp.protocol.NS_MUC_ROOMS=xmpp.protocol-module.html#NS_MUC_ROOMS"><a title="xmpp.protocol.NS_MUC_ROOMS" class="py-name" href="#" onclick="return doclink('link-123', 'NS_MUC_ROOMS', 'link-123');">NS_MUC_ROOMS</a></tt>                    <tt class="py-op">=</tt><tt id="link-124" class="py-name"><a title="xmpp.protocol.NS_MUC" class="py-name" href="#" onclick="return doclink('link-124', 'NS_MUC', 'link-106');">NS_MUC</a></tt><tt class="py-op">+</tt><tt class="py-string">'#rooms'</tt>                            <tt class="py-comment"># XEP-0045</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line"><tt id="link-125" class="py-name" targets="Variable xmpp.protocol.NS_MUC_TRAFIC=xmpp.protocol-module.html#NS_MUC_TRAFIC"><a title="xmpp.protocol.NS_MUC_TRAFIC" class="py-name" href="#" onclick="return doclink('link-125', 'NS_MUC_TRAFIC', 'link-125');">NS_MUC_TRAFIC</a></tt>                   <tt class="py-op">=</tt><tt id="link-126" class="py-name"><a title="xmpp.protocol.NS_MUC" class="py-name" href="#" onclick="return doclink('link-126', 'NS_MUC', 'link-106');">NS_MUC</a></tt><tt class="py-op">+</tt><tt class="py-string">'#traffic'</tt>                          <tt class="py-comment"># XEP-0045</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line"><tt id="link-127" class="py-name" targets="Variable xmpp.protocol.NS_OFFLINE=xmpp.protocol-module.html#NS_OFFLINE"><a title="xmpp.protocol.NS_OFFLINE" class="py-name" href="#" onclick="return doclink('link-127', 'NS_OFFLINE', 'link-127');">NS_OFFLINE</a></tt>          <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/offline'</tt>                   <tt class="py-comment"># XEP-0013</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line"><tt id="link-128" class="py-name" targets="Variable xmpp.protocol.NS_PHYSLOC=xmpp.protocol-module.html#NS_PHYSLOC"><a title="xmpp.protocol.NS_PHYSLOC" class="py-name" href="#" onclick="return doclink('link-128', 'NS_PHYSLOC', 'link-128');">NS_PHYSLOC</a></tt>          <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/physloc'</tt>                   <tt class="py-comment"># XEP-0112</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line"><tt id="link-129" class="py-name" targets="Variable xmpp.protocol.NS_PRESENCE=xmpp.protocol-module.html#NS_PRESENCE"><a title="xmpp.protocol.NS_PRESENCE" class="py-name" href="#" onclick="return doclink('link-129', 'NS_PRESENCE', 'link-129');">NS_PRESENCE</a></tt>         <tt class="py-op">=</tt><tt class="py-string">'presence'</tt>                                             <tt class="py-comment"># Jabberd2</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line"><tt id="link-130" class="py-name" targets="Variable xmpp.protocol.NS_PRIVACY=xmpp.protocol-module.html#NS_PRIVACY"><a title="xmpp.protocol.NS_PRIVACY" class="py-name" href="#" onclick="return doclink('link-130', 'NS_PRIVACY', 'link-130');">NS_PRIVACY</a></tt>          <tt class="py-op">=</tt><tt class="py-string">'jabber:iq:privacy'</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line"><tt id="link-131" class="py-name" targets="Variable xmpp.protocol.NS_PRIVATE=xmpp.protocol-module.html#NS_PRIVATE"><a title="xmpp.protocol.NS_PRIVATE" class="py-name" href="#" onclick="return doclink('link-131', 'NS_PRIVATE', 'link-131');">NS_PRIVATE</a></tt>          <tt class="py-op">=</tt><tt class="py-string">'jabber:iq:private'</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line"><tt id="link-132" class="py-name" targets="Variable xmpp.protocol.NS_PUBSUB=xmpp.protocol-module.html#NS_PUBSUB"><a title="xmpp.protocol.NS_PUBSUB" class="py-name" href="#" onclick="return doclink('link-132', 'NS_PUBSUB', 'link-132');">NS_PUBSUB</a></tt>           <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/pubsub'</tt>                    <tt class="py-comment"># XEP-0060</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line"><tt id="link-133" class="py-name" targets="Variable xmpp.protocol.NS_REGISTER=xmpp.protocol-module.html#NS_REGISTER"><a title="xmpp.protocol.NS_REGISTER" class="py-name" href="#" onclick="return doclink('link-133', 'NS_REGISTER', 'link-133');">NS_REGISTER</a></tt>         <tt class="py-op">=</tt><tt class="py-string">'jabber:iq:register'</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line"><tt id="link-134" class="py-name" targets="Variable xmpp.protocol.NS_ROSTER=xmpp.protocol-module.html#NS_ROSTER"><a title="xmpp.protocol.NS_ROSTER" class="py-name" href="#" onclick="return doclink('link-134', 'NS_ROSTER', 'link-134');">NS_ROSTER</a></tt>           <tt class="py-op">=</tt><tt class="py-string">'jabber:iq:roster'</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line"><tt id="link-135" class="py-name" targets="Variable xmpp.protocol.NS_ROSTERX=xmpp.protocol-module.html#NS_ROSTERX"><a title="xmpp.protocol.NS_ROSTERX" class="py-name" href="#" onclick="return doclink('link-135', 'NS_ROSTERX', 'link-135');">NS_ROSTERX</a></tt>          <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/rosterx'</tt>                   <tt class="py-comment"># XEP-0144</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line"><tt id="link-136" class="py-name" targets="Variable xmpp.protocol.NS_RPC=xmpp.protocol-module.html#NS_RPC"><a title="xmpp.protocol.NS_RPC" class="py-name" href="#" onclick="return doclink('link-136', 'NS_RPC', 'link-136');">NS_RPC</a></tt>              <tt class="py-op">=</tt><tt class="py-string">'jabber:iq:rpc'</tt>                                        <tt class="py-comment"># XEP-0009</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line"><tt id="link-137" class="py-name" targets="Variable xmpp.protocol.NS_SASL=xmpp.protocol-module.html#NS_SASL"><a title="xmpp.protocol.NS_SASL" class="py-name" href="#" onclick="return doclink('link-137', 'NS_SASL', 'link-137');">NS_SASL</a></tt>             <tt class="py-op">=</tt><tt class="py-string">'urn:ietf:params:xml:ns:xmpp-sasl'</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line"><tt id="link-138" class="py-name" targets="Variable xmpp.protocol.NS_SEARCH=xmpp.protocol-module.html#NS_SEARCH"><a title="xmpp.protocol.NS_SEARCH" class="py-name" href="#" onclick="return doclink('link-138', 'NS_SEARCH', 'link-138');">NS_SEARCH</a></tt>           <tt class="py-op">=</tt><tt class="py-string">'jabber:iq:search'</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line"><tt id="link-139" class="py-name" targets="Variable xmpp.protocol.NS_SERVER=xmpp.protocol-module.html#NS_SERVER"><a title="xmpp.protocol.NS_SERVER" class="py-name" href="#" onclick="return doclink('link-139', 'NS_SERVER', 'link-139');">NS_SERVER</a></tt>           <tt class="py-op">=</tt><tt class="py-string">'jabber:server'</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line"><tt id="link-140" class="py-name" targets="Variable xmpp.protocol.NS_SESSION=xmpp.protocol-module.html#NS_SESSION"><a title="xmpp.protocol.NS_SESSION" class="py-name" href="#" onclick="return doclink('link-140', 'NS_SESSION', 'link-140');">NS_SESSION</a></tt>          <tt class="py-op">=</tt><tt class="py-string">'urn:ietf:params:xml:ns:xmpp-session'</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line"><tt id="link-141" class="py-name" targets="Variable xmpp.protocol.NS_SI=xmpp.protocol-module.html#NS_SI"><a title="xmpp.protocol.NS_SI" class="py-name" href="#" onclick="return doclink('link-141', 'NS_SI', 'link-141');">NS_SI</a></tt>               <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/si'</tt>                        <tt class="py-comment"># XEP-0096</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line"><tt id="link-142" class="py-name" targets="Variable xmpp.protocol.NS_SI_PUB=xmpp.protocol-module.html#NS_SI_PUB"><a title="xmpp.protocol.NS_SI_PUB" class="py-name" href="#" onclick="return doclink('link-142', 'NS_SI_PUB', 'link-142');">NS_SI_PUB</a></tt>           <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/sipub'</tt>                     <tt class="py-comment"># XEP-0137</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line"><tt id="link-143" class="py-name" targets="Variable xmpp.protocol.NS_SIGNED=xmpp.protocol-module.html#NS_SIGNED"><a title="xmpp.protocol.NS_SIGNED" class="py-name" href="#" onclick="return doclink('link-143', 'NS_SIGNED', 'link-143');">NS_SIGNED</a></tt>           <tt class="py-op">=</tt><tt class="py-string">'jabber:x:signed'</tt>                                      <tt class="py-comment"># XEP-0027</tt> </tt>
<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line"><tt id="link-144" class="py-name" targets="Variable xmpp.protocol.NS_STANZAS=xmpp.protocol-module.html#NS_STANZAS"><a title="xmpp.protocol.NS_STANZAS" class="py-name" href="#" onclick="return doclink('link-144', 'NS_STANZAS', 'link-144');">NS_STANZAS</a></tt>          <tt class="py-op">=</tt><tt class="py-string">'urn:ietf:params:xml:ns:xmpp-stanzas'</tt> </tt>
<a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line"><tt id="link-145" class="py-name" targets="Variable xmpp.protocol.NS_STREAMS=xmpp.protocol-module.html#NS_STREAMS"><a title="xmpp.protocol.NS_STREAMS" class="py-name" href="#" onclick="return doclink('link-145', 'NS_STREAMS', 'link-145');">NS_STREAMS</a></tt>          <tt class="py-op">=</tt><tt class="py-string">'http://etherx.jabber.org/streams'</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line"><tt id="link-146" class="py-name" targets="Variable xmpp.protocol.NS_TIME=xmpp.protocol-module.html#NS_TIME"><a title="xmpp.protocol.NS_TIME" class="py-name" href="#" onclick="return doclink('link-146', 'NS_TIME', 'link-146');">NS_TIME</a></tt>             <tt class="py-op">=</tt><tt class="py-string">'jabber:iq:time'</tt> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line"><tt id="link-147" class="py-name" targets="Variable xmpp.protocol.NS_TLS=xmpp.protocol-module.html#NS_TLS"><a title="xmpp.protocol.NS_TLS" class="py-name" href="#" onclick="return doclink('link-147', 'NS_TLS', 'link-147');">NS_TLS</a></tt>              <tt class="py-op">=</tt><tt class="py-string">'urn:ietf:params:xml:ns:xmpp-tls'</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line"><tt id="link-148" class="py-name" targets="Variable xmpp.protocol.NS_VACATION=xmpp.protocol-module.html#NS_VACATION"><a title="xmpp.protocol.NS_VACATION" class="py-name" href="#" onclick="return doclink('link-148', 'NS_VACATION', 'link-148');">NS_VACATION</a></tt>         <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/vacation'</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line"><tt id="link-149" class="py-name" targets="Variable xmpp.protocol.NS_VCARD=xmpp.protocol-module.html#NS_VCARD"><a title="xmpp.protocol.NS_VCARD" class="py-name" href="#" onclick="return doclink('link-149', 'NS_VCARD', 'link-149');">NS_VCARD</a></tt>            <tt class="py-op">=</tt><tt class="py-string">'vcard-temp'</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line"><tt id="link-150" class="py-name" targets="Variable xmpp.protocol.NS_VERSION=xmpp.protocol-module.html#NS_VERSION"><a title="xmpp.protocol.NS_VERSION" class="py-name" href="#" onclick="return doclink('link-150', 'NS_VERSION', 'link-150');">NS_VERSION</a></tt>          <tt class="py-op">=</tt><tt class="py-string">'jabber:iq:version'</tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line"><tt id="link-151" class="py-name" targets="Variable xmpp.protocol.NS_WAITINGLIST=xmpp.protocol-module.html#NS_WAITINGLIST"><a title="xmpp.protocol.NS_WAITINGLIST" class="py-name" href="#" onclick="return doclink('link-151', 'NS_WAITINGLIST', 'link-151');">NS_WAITINGLIST</a></tt>      <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/waitinglist'</tt>               <tt class="py-comment"># XEP-0130</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line"><tt id="link-152" class="py-name" targets="Variable xmpp.protocol.NS_XHTML_IM=xmpp.protocol-module.html#NS_XHTML_IM"><a title="xmpp.protocol.NS_XHTML_IM" class="py-name" href="#" onclick="return doclink('link-152', 'NS_XHTML_IM', 'link-152');">NS_XHTML_IM</a></tt>         <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/xhtml-im'</tt>                  <tt class="py-comment"># XEP-0071</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line"><tt id="link-153" class="py-name" targets="Variable xmpp.protocol.NS_DATA_LAYOUT=xmpp.protocol-module.html#NS_DATA_LAYOUT"><a title="xmpp.protocol.NS_DATA_LAYOUT" class="py-name" href="#" onclick="return doclink('link-153', 'NS_DATA_LAYOUT', 'link-153');">NS_DATA_LAYOUT</a></tt>      <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/xdata-layout'</tt>              <tt class="py-comment"># XEP-0141</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line"><tt id="link-154" class="py-name" targets="Variable xmpp.protocol.NS_DATA_VALIDATE=xmpp.protocol-module.html#NS_DATA_VALIDATE"><a title="xmpp.protocol.NS_DATA_VALIDATE" class="py-name" href="#" onclick="return doclink('link-154', 'NS_DATA_VALIDATE', 'link-154');">NS_DATA_VALIDATE</a></tt>    <tt class="py-op">=</tt><tt class="py-string">'http://jabber.org/protocol/xdata-validate'</tt>            <tt class="py-comment"># XEP-0122</tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line"><tt id="link-155" class="py-name" targets="Variable xmpp.protocol.NS_XMPP_STREAMS=xmpp.protocol-module.html#NS_XMPP_STREAMS"><a title="xmpp.protocol.NS_XMPP_STREAMS" class="py-name" href="#" onclick="return doclink('link-155', 'NS_XMPP_STREAMS', 'link-155');">NS_XMPP_STREAMS</a></tt>     <tt class="py-op">=</tt><tt class="py-string">'urn:ietf:params:xml:ns:xmpp-streams'</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line"> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line"><tt id="link-156" class="py-name" targets="Variable xmpp.protocol.xmpp_stream_error_conditions=xmpp.protocol-module.html#xmpp_stream_error_conditions"><a title="xmpp.protocol.xmpp_stream_error_conditions" class="py-name" href="#" onclick="return doclink('link-156', 'xmpp_stream_error_conditions', 'link-156');">xmpp_stream_error_conditions</a></tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line"><tt class="py-string">bad-format --  --  -- The entity has sent XML that cannot be processed.</tt> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line"><tt class="py-string">bad-namespace-prefix --  --  -- The entity has sent a namespace prefix that is unsupported, or has sent no namespace prefix on an element that requires such a prefix.</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line"><tt class="py-string">conflict --  --  -- The server is closing the active stream for this entity because a new stream has been initiated that conflicts with the existing stream.</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line"><tt class="py-string">connection-timeout --  --  -- The entity has not generated any traffic over the stream for some period of time.</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line"><tt class="py-string">host-gone --  --  -- The value of the 'to' attribute provided by the initiating entity in the stream header corresponds to a hostname that is no longer hosted by the server.</tt> </tt>
<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line"><tt class="py-string">host-unknown --  --  -- The value of the 'to' attribute provided by the initiating entity in the stream header does not correspond to a hostname that is hosted by the server.</tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line"><tt class="py-string">improper-addressing --  --  -- A stanza sent between two servers lacks a 'to' or 'from' attribute (or the attribute has no value).</tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line"><tt class="py-string">internal-server-error --  --  -- The server has experienced a misconfiguration or an otherwise-undefined internal error that prevents it from servicing the stream.</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line"><tt class="py-string">invalid-from -- cancel --  -- The JID or hostname provided in a 'from' address does not match an authorized JID or validated domain negotiated between servers via SASL or dialback, or between a client and a server via authentication and resource authorization.</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line"><tt class="py-string">invalid-id --  --  -- The stream ID or dialback ID is invalid or does not match an ID previously provided.</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line"><tt class="py-string">invalid-namespace --  --  -- The streams namespace name is something other than "http://etherx.jabber.org/streams" or the dialback namespace name is something other than "jabber:server:dialback".</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line"><tt class="py-string">invalid-xml --  --  -- The entity has sent invalid XML over the stream to a server that performs validation.</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line"><tt class="py-string">not-authorized --  --  -- The entity has attempted to send data before the stream has been authenticated, or otherwise is not authorized to perform an action related to stream negotiation.</tt> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line"><tt class="py-string">policy-violation --  --  -- The entity has violated some local service policy.</tt> </tt>
<a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line"><tt class="py-string">remote-connection-failed --  --  -- The server is unable to properly connect to a remote resource that is required for authentication or authorization.</tt> </tt>
<a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line"><tt class="py-string">resource-constraint --  --  -- The server lacks the system resources necessary to service the stream.</tt> </tt>
<a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line"><tt class="py-string">restricted-xml --  --  -- The entity has attempted to send restricted XML features such as a comment, processing instruction, DTD, entity reference, or unescaped character.</tt> </tt>
<a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line"><tt class="py-string">see-other-host --  --  -- The server will not provide service to the initiating entity but is redirecting traffic to another host.</tt> </tt>
<a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line"><tt class="py-string">system-shutdown --  --  -- The server is being shut down and all active streams are being closed.</tt> </tt>
<a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line"><tt class="py-string">undefined-condition --  --  -- The error condition is not one of those defined by the other conditions in this list.</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line"><tt class="py-string">unsupported-encoding --  --  -- The initiating entity has encoded the stream in an encoding that is not supported by the server.</tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line"><tt class="py-string">unsupported-stanza-type --  --  -- The initiating entity has sent a first-level child of the stream that is not supported by the server.</tt> </tt>
<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line"><tt class="py-string">unsupported-version --  --  -- The value of the 'version' attribute provided by the initiating entity in the stream header specifies a version of XMPP that is not supported by the server.</tt> </tt>
<a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line"><tt class="py-string">xml-not-well-formed --  --  -- The initiating entity has sent XML that is not well-formed."""</tt> </tt>
<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line"><tt id="link-157" class="py-name" targets="Variable xmpp.protocol.xmpp_stanza_error_conditions=xmpp.protocol-module.html#xmpp_stanza_error_conditions"><a title="xmpp.protocol.xmpp_stanza_error_conditions" class="py-name" href="#" onclick="return doclink('link-157', 'xmpp_stanza_error_conditions', 'link-157');">xmpp_stanza_error_conditions</a></tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line"><tt class="py-string">bad-request -- 400 -- modify -- The sender has sent XML that is malformed or that cannot be processed.</tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line"><tt class="py-string">conflict -- 409 -- cancel -- Access cannot be granted because an existing resource or session exists with the same name or address.</tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line"><tt class="py-string">feature-not-implemented -- 501 -- cancel -- The feature requested is not implemented by the recipient or server and therefore cannot be processed.</tt> </tt>
<a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line"><tt class="py-string">forbidden -- 403 -- auth -- The requesting entity does not possess the required permissions to perform the action.</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line"><tt class="py-string">gone -- 302 -- modify -- The recipient or server can no longer be contacted at this address.</tt> </tt>
<a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line"><tt class="py-string">internal-server-error -- 500 -- wait -- The server could not process the stanza because of a misconfiguration or an otherwise-undefined internal server error.</tt> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line"><tt class="py-string">item-not-found -- 404 -- cancel -- The addressed JID or item requested cannot be found.</tt> </tt>
<a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line"><tt class="py-string">jid-malformed -- 400 -- modify -- The value of the 'to' attribute in the sender's stanza does not adhere to the syntax defined in Addressing Scheme.</tt> </tt>
<a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line"><tt class="py-string">not-acceptable -- 406 -- cancel -- The recipient or server understands the request but is refusing to process it because it does not meet criteria defined by the recipient or server.</tt> </tt>
<a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line"><tt class="py-string">not-allowed -- 405 -- cancel -- The recipient or server does not allow any entity to perform the action.</tt> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line"><tt class="py-string">not-authorized -- 401 -- auth -- The sender must provide proper credentials before being allowed to perform the action, or has provided improper credentials.</tt> </tt>
<a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line"><tt class="py-string">payment-required -- 402 -- auth -- The requesting entity is not authorized to access the requested service because payment is required.</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line"><tt class="py-string">recipient-unavailable -- 404 -- wait -- The intended recipient is temporarily unavailable.</tt> </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line"><tt class="py-string">redirect -- 302 -- modify -- The recipient or server is redirecting requests for this information to another entity.</tt> </tt>
<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line"><tt class="py-string">registration-required -- 407 -- auth -- The requesting entity is not authorized to access the requested service because registration is required.</tt> </tt>
<a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line"><tt class="py-string">remote-server-not-found -- 404 -- cancel -- A remote server or service specified as part or all of the JID of the intended recipient does not exist.</tt> </tt>
<a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line"><tt class="py-string">remote-server-timeout -- 504 -- wait -- A remote server or service specified as part or all of the JID of the intended recipient could not be contacted within a reasonable amount of time.</tt> </tt>
<a name="L177"></a><tt class="py-lineno">177</tt>  <tt class="py-line"><tt class="py-string">resource-constraint -- 500 -- wait -- The server or recipient lacks the system resources necessary to service the request.</tt> </tt>
<a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line"><tt class="py-string">service-unavailable -- 503 -- cancel -- The server or recipient does not currently provide the requested service.</tt> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line"><tt class="py-string">subscription-required -- 407 -- auth -- The requesting entity is not authorized to access the requested service because a subscription is required.</tt> </tt>
<a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line"><tt class="py-string">undefined-condition -- 500 --  -- </tt> </tt>
<a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line"><tt class="py-string">unexpected-request -- 400 -- wait -- The recipient or server understood the request but was not expecting it at this time (e.g., the request was out of order)."""</tt> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line"><tt id="link-158" class="py-name" targets="Variable xmpp.protocol.sasl_error_conditions=xmpp.protocol-module.html#sasl_error_conditions"><a title="xmpp.protocol.sasl_error_conditions" class="py-name" href="#" onclick="return doclink('link-158', 'sasl_error_conditions', 'link-158');">sasl_error_conditions</a></tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line"><tt class="py-string">aborted --  --  -- The receiving entity acknowledges an &lt;abort/&gt; element sent by the initiating entity; sent in reply to the &lt;abort/&gt; element.</tt> </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line"><tt class="py-string">incorrect-encoding --  --  -- The data provided by the initiating entity could not be processed because the [BASE64]Josefsson, S., The Base16, Base32, and Base64 Data Encodings, July 2003. encoding is incorrect (e.g., because the encoding does not adhere to the definition in Section 3 of [BASE64]Josefsson, S., The Base16, Base32, and Base64 Data Encodings, July 2003.); sent in reply to a &lt;response/&gt; element or an &lt;auth/&gt; element with initial response data.</tt> </tt>
<a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line"><tt class="py-string">invalid-authzid --  --  -- The authzid provided by the initiating entity is invalid, either because it is incorrectly formatted or because the initiating entity does not have permissions to authorize that ID; sent in reply to a &lt;response/&gt; element or an &lt;auth/&gt; element with initial response data.</tt> </tt>
<a name="L186"></a><tt class="py-lineno">186</tt>  <tt class="py-line"><tt class="py-string">invalid-mechanism --  --  -- The initiating entity did not provide a mechanism or requested a mechanism that is not supported by the receiving entity; sent in reply to an &lt;auth/&gt; element.</tt> </tt>
<a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line"><tt class="py-string">mechanism-too-weak --  --  -- The mechanism requested by the initiating entity is weaker than server policy permits for that initiating entity; sent in reply to a &lt;response/&gt; element or an &lt;auth/&gt; element with initial response data.</tt> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line"><tt class="py-string">not-authorized --  --  -- The authentication failed because the initiating entity did not provide valid credentials (this includes but is not limited to the case of an unknown username); sent in reply to a &lt;response/&gt; element or an &lt;auth/&gt; element with initial response data.</tt> </tt>
<a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line"><tt class="py-string">temporary-auth-failure --  --  -- The authentication failed because of a temporary error condition within the receiving entity; sent in reply to an &lt;auth/&gt; element or &lt;response/&gt; element."""</tt> </tt>
<a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line"> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line"><tt id="link-159" class="py-name" targets="Variable xmpp.ERRORS=xmpp-module.html#ERRORS,Variable xmpp.auth.ERRORS=xmpp.auth-module.html#ERRORS,Variable xmpp.browser.ERRORS=xmpp.browser-module.html#ERRORS,Variable xmpp.commands.ERRORS=xmpp.commands-module.html#ERRORS,Variable xmpp.dispatcher.ERRORS=xmpp.dispatcher-module.html#ERRORS,Variable xmpp.features.ERRORS=xmpp.features-module.html#ERRORS,Variable xmpp.filetransfer.ERRORS=xmpp.filetransfer-module.html#ERRORS,Variable xmpp.protocol.ERRORS=xmpp.protocol-module.html#ERRORS,Variable xmpp.roster.ERRORS=xmpp.roster-module.html#ERRORS,Variable xmpp.session.ERRORS=xmpp.session-module.html#ERRORS,Variable xmpp.transports.ERRORS=xmpp.transports-module.html#ERRORS"><a title="xmpp.ERRORS
xmpp.auth.ERRORS
xmpp.browser.ERRORS
xmpp.commands.ERRORS
xmpp.dispatcher.ERRORS
xmpp.features.ERRORS
xmpp.filetransfer.ERRORS
xmpp.protocol.ERRORS
xmpp.roster.ERRORS
xmpp.session.ERRORS
xmpp.transports.ERRORS" class="py-name" href="#" onclick="return doclink('link-159', 'ERRORS', 'link-159');">ERRORS</a></tt><tt class="py-op">,</tt><tt id="link-160" class="py-name" targets="Variable xmpp.protocol._errorcodes=xmpp.protocol-module.html#_errorcodes"><a title="xmpp.protocol._errorcodes" class="py-name" href="#" onclick="return doclink('link-160', '_errorcodes', 'link-160');">_errorcodes</a></tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">,</tt><tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line"><tt class="py-keyword">for</tt> <tt class="py-name">ns</tt><tt class="py-op">,</tt><tt class="py-name">errname</tt><tt class="py-op">,</tt><tt class="py-name">errpool</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-op">(</tt><tt id="link-161" class="py-name"><a title="xmpp.protocol.NS_XMPP_STREAMS" class="py-name" href="#" onclick="return doclink('link-161', 'NS_XMPP_STREAMS', 'link-155');">NS_XMPP_STREAMS</a></tt><tt class="py-op">,</tt><tt class="py-string">'STREAM'</tt><tt class="py-op">,</tt><tt id="link-162" class="py-name"><a title="xmpp.protocol.xmpp_stream_error_conditions" class="py-name" href="#" onclick="return doclink('link-162', 'xmpp_stream_error_conditions', 'link-156');">xmpp_stream_error_conditions</a></tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line">                           <tt class="py-op">(</tt><tt id="link-163" class="py-name"><a title="xmpp.protocol.NS_STANZAS" class="py-name" href="#" onclick="return doclink('link-163', 'NS_STANZAS', 'link-144');">NS_STANZAS</a></tt>     <tt class="py-op">,</tt><tt class="py-string">'ERR'</tt>   <tt class="py-op">,</tt><tt id="link-164" class="py-name"><a title="xmpp.protocol.xmpp_stanza_error_conditions" class="py-name" href="#" onclick="return doclink('link-164', 'xmpp_stanza_error_conditions', 'link-157');">xmpp_stanza_error_conditions</a></tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line">                           <tt class="py-op">(</tt><tt id="link-165" class="py-name"><a title="xmpp.protocol.NS_SASL" class="py-name" href="#" onclick="return doclink('link-165', 'NS_SASL', 'link-137');">NS_SASL</a></tt>        <tt class="py-op">,</tt><tt class="py-string">'SASL'</tt>  <tt class="py-op">,</tt><tt id="link-166" class="py-name"><a title="xmpp.protocol.sasl_error_conditions" class="py-name" href="#" onclick="return doclink('link-166', 'sasl_error_conditions', 'link-158');">sasl_error_conditions</a></tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">err</tt> <tt class="py-keyword">in</tt> <tt class="py-name">errpool</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L196"></a><tt class="py-lineno">196</tt>  <tt class="py-line">        <tt class="py-name">cond</tt><tt class="py-op">,</tt><tt class="py-name">code</tt><tt class="py-op">,</tt><tt class="py-name">typ</tt><tt class="py-op">,</tt><tt class="py-name">text</tt><tt class="py-op">=</tt><tt class="py-name">err</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">' -- '</tt><tt class="py-op">)</tt> </tt>
<a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">        <tt id="link-167" class="py-name" targets="Variable xmpp.auth.name=xmpp.auth-module.html#name,Variable xmpp.browser.name=xmpp.browser-module.html#name,Variable xmpp.commands.Command_Handler_Prototype.name=xmpp.commands.Command_Handler_Prototype-class.html#name,Variable xmpp.commands.TestCommand.name=xmpp.commands.TestCommand-class.html#name,Variable xmpp.commands.name=xmpp.commands-module.html#name,Variable xmpp.dispatcher.name=xmpp.dispatcher-module.html#name,Variable xmpp.features.name=xmpp.features-module.html#name,Variable xmpp.filetransfer.name=xmpp.filetransfer-module.html#name,Variable xmpp.name=xmpp-module.html#name,Variable xmpp.protocol.name=xmpp.protocol-module.html#name,Variable xmpp.roster.name=xmpp.roster-module.html#name,Variable xmpp.session.name=xmpp.session-module.html#name,Variable xmpp.transports.name=xmpp.transports-module.html#name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-167', 'name', 'link-167');">name</a></tt><tt class="py-op">=</tt><tt class="py-name">errname</tt><tt class="py-op">+</tt><tt class="py-string">'_'</tt><tt class="py-op">+</tt><tt class="py-name">cond</tt><tt class="py-op">.</tt><tt class="py-name">upper</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'-'</tt><tt class="py-op">,</tt><tt class="py-string">'_'</tt><tt class="py-op">)</tt> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line">        <tt class="py-name">locals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt id="link-168" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-168', 'name', 'link-167');">name</a></tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">ns</tt><tt class="py-op">+</tt><tt class="py-string">' '</tt><tt class="py-op">+</tt><tt class="py-name">cond</tt> </tt>
<a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line">        <tt id="link-169" class="py-name"><a title="xmpp.ERRORS
xmpp.auth.ERRORS
xmpp.browser.ERRORS
xmpp.commands.ERRORS
xmpp.dispatcher.ERRORS
xmpp.features.ERRORS
xmpp.filetransfer.ERRORS
xmpp.protocol.ERRORS
xmpp.roster.ERRORS
xmpp.session.ERRORS
xmpp.transports.ERRORS" class="py-name" href="#" onclick="return doclink('link-169', 'ERRORS', 'link-159');">ERRORS</a></tt><tt class="py-op">[</tt><tt class="py-name">ns</tt><tt class="py-op">+</tt><tt class="py-string">' '</tt><tt class="py-op">+</tt><tt class="py-name">cond</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-name">code</tt><tt class="py-op">,</tt><tt class="py-name">typ</tt><tt class="py-op">,</tt><tt class="py-name">text</tt><tt class="py-op">]</tt> </tt>
<a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">code</tt><tt class="py-op">:</tt> <tt id="link-170" class="py-name"><a title="xmpp.protocol._errorcodes" class="py-name" href="#" onclick="return doclink('link-170', '_errorcodes', 'link-160');">_errorcodes</a></tt><tt class="py-op">[</tt><tt class="py-name">code</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">cond</tt> </tt>
<a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line"><tt class="py-keyword">del</tt> <tt class="py-name">ns</tt><tt class="py-op">,</tt><tt class="py-name">errname</tt><tt class="py-op">,</tt><tt class="py-name">errpool</tt><tt class="py-op">,</tt><tt class="py-name">err</tt><tt class="py-op">,</tt><tt class="py-name">cond</tt><tt class="py-op">,</tt><tt class="py-name">code</tt><tt class="py-op">,</tt><tt class="py-name">typ</tt><tt class="py-op">,</tt><tt class="py-name">text</tt> </tt>
<a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line"> </tt>
<a name="isResultNode"></a><div id="isResultNode-def"><a name="L203"></a><tt class="py-lineno">203</tt> <a class="py-toggle" href="#" id="isResultNode-toggle" onclick="return toggle('isResultNode');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol-module.html#isResultNode">isResultNode</a><tt class="py-op">(</tt><tt class="py-param">node</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="isResultNode-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="isResultNode-expanded"><a name="L204"></a><tt class="py-lineno">204</tt>  <tt class="py-line">    <tt class="py-docstring">""" Returns true if the node is a positive reply. """</tt> </tt>
<a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">node</tt> <tt class="py-keyword">and</tt> <tt class="py-name">node</tt><tt class="py-op">.</tt><tt id="link-171" class="py-name" targets="Method xmpp.protocol.DataField.getType()=xmpp.protocol.DataField-class.html#getType,Method xmpp.protocol.DataForm.getType()=xmpp.protocol.DataForm-class.html#getType,Method xmpp.protocol.Protocol.getType()=xmpp.protocol.Protocol-class.html#getType"><a title="xmpp.protocol.DataField.getType
xmpp.protocol.DataForm.getType
xmpp.protocol.Protocol.getType" class="py-name" href="#" onclick="return doclink('link-171', 'getType', 'link-171');">getType</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-string">'result'</tt> </tt>
</div><a name="isErrorNode"></a><div id="isErrorNode-def"><a name="L206"></a><tt class="py-lineno">206</tt> <a class="py-toggle" href="#" id="isErrorNode-toggle" onclick="return toggle('isErrorNode');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol-module.html#isErrorNode">isErrorNode</a><tt class="py-op">(</tt><tt class="py-param">node</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="isErrorNode-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="isErrorNode-expanded"><a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line">    <tt class="py-docstring">""" Returns true if the node is a negative reply. """</tt> </tt>
<a name="L208"></a><tt class="py-lineno">208</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">node</tt> <tt class="py-keyword">and</tt> <tt class="py-name">node</tt><tt class="py-op">.</tt><tt id="link-172" class="py-name"><a title="xmpp.protocol.DataField.getType
xmpp.protocol.DataForm.getType
xmpp.protocol.Protocol.getType" class="py-name" href="#" onclick="return doclink('link-172', 'getType', 'link-171');">getType</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-string">'error'</tt> </tt>
</div><a name="L209"></a><tt class="py-lineno">209</tt>  <tt class="py-line"> </tt>
<a name="NodeProcessed"></a><div id="NodeProcessed-def"><a name="L210"></a><tt class="py-lineno">210</tt> <a class="py-toggle" href="#" id="NodeProcessed-toggle" onclick="return toggle('NodeProcessed');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.NodeProcessed-class.html">NodeProcessed</a><tt class="py-op">(</tt><tt class="py-base-class">Exception</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="NodeProcessed-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="NodeProcessed-expanded"><a name="L211"></a><tt class="py-lineno">211</tt>  <tt class="py-line">    <tt class="py-docstring">""" Exception that should be raised by handler when the handling should be stopped. """</tt> </tt>
</div><a name="StreamError"></a><div id="StreamError-def"><a name="L212"></a><tt class="py-lineno">212</tt> <a class="py-toggle" href="#" id="StreamError-toggle" onclick="return toggle('StreamError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.StreamError-class.html">StreamError</a><tt class="py-op">(</tt><tt class="py-base-class">Exception</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="StreamError-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="StreamError-expanded"><a name="L213"></a><tt class="py-lineno">213</tt>  <tt class="py-line">    <tt class="py-docstring">""" Base exception class for stream errors."""</tt> </tt>
</div><a name="BadFormat"></a><div id="BadFormat-def"><a name="L214"></a><tt class="py-lineno">214</tt> <a class="py-toggle" href="#" id="BadFormat-toggle" onclick="return toggle('BadFormat');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.BadFormat-class.html">BadFormat</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="BadNamespacePrefix"></a><div id="BadNamespacePrefix-def"><a name="L215"></a><tt class="py-lineno">215</tt> <a class="py-toggle" href="#" id="BadNamespacePrefix-toggle" onclick="return toggle('BadNamespacePrefix');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.BadNamespacePrefix-class.html">BadNamespacePrefix</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="Conflict"></a><div id="Conflict-def"><a name="L216"></a><tt class="py-lineno">216</tt> <a class="py-toggle" href="#" id="Conflict-toggle" onclick="return toggle('Conflict');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.Conflict-class.html">Conflict</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="ConnectionTimeout"></a><div id="ConnectionTimeout-def"><a name="L217"></a><tt class="py-lineno">217</tt> <a class="py-toggle" href="#" id="ConnectionTimeout-toggle" onclick="return toggle('ConnectionTimeout');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.ConnectionTimeout-class.html">ConnectionTimeout</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="HostGone"></a><div id="HostGone-def"><a name="L218"></a><tt class="py-lineno">218</tt> <a class="py-toggle" href="#" id="HostGone-toggle" onclick="return toggle('HostGone');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.HostGone-class.html">HostGone</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="HostUnknown"></a><div id="HostUnknown-def"><a name="L219"></a><tt class="py-lineno">219</tt> <a class="py-toggle" href="#" id="HostUnknown-toggle" onclick="return toggle('HostUnknown');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.HostUnknown-class.html">HostUnknown</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="ImproperAddressing"></a><div id="ImproperAddressing-def"><a name="L220"></a><tt class="py-lineno">220</tt> <a class="py-toggle" href="#" id="ImproperAddressing-toggle" onclick="return toggle('ImproperAddressing');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.ImproperAddressing-class.html">ImproperAddressing</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="InternalServerError"></a><div id="InternalServerError-def"><a name="L221"></a><tt class="py-lineno">221</tt> <a class="py-toggle" href="#" id="InternalServerError-toggle" onclick="return toggle('InternalServerError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.InternalServerError-class.html">InternalServerError</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="InvalidFrom"></a><div id="InvalidFrom-def"><a name="L222"></a><tt class="py-lineno">222</tt> <a class="py-toggle" href="#" id="InvalidFrom-toggle" onclick="return toggle('InvalidFrom');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.InvalidFrom-class.html">InvalidFrom</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="InvalidID"></a><div id="InvalidID-def"><a name="L223"></a><tt class="py-lineno">223</tt> <a class="py-toggle" href="#" id="InvalidID-toggle" onclick="return toggle('InvalidID');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.InvalidID-class.html">InvalidID</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="InvalidNamespace"></a><div id="InvalidNamespace-def"><a name="L224"></a><tt class="py-lineno">224</tt> <a class="py-toggle" href="#" id="InvalidNamespace-toggle" onclick="return toggle('InvalidNamespace');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.InvalidNamespace-class.html">InvalidNamespace</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="InvalidXML"></a><div id="InvalidXML-def"><a name="L225"></a><tt class="py-lineno">225</tt> <a class="py-toggle" href="#" id="InvalidXML-toggle" onclick="return toggle('InvalidXML');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.InvalidXML-class.html">InvalidXML</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="NotAuthorized"></a><div id="NotAuthorized-def"><a name="L226"></a><tt class="py-lineno">226</tt> <a class="py-toggle" href="#" id="NotAuthorized-toggle" onclick="return toggle('NotAuthorized');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.NotAuthorized-class.html">NotAuthorized</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="PolicyViolation"></a><div id="PolicyViolation-def"><a name="L227"></a><tt class="py-lineno">227</tt> <a class="py-toggle" href="#" id="PolicyViolation-toggle" onclick="return toggle('PolicyViolation');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.PolicyViolation-class.html">PolicyViolation</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="RemoteConnectionFailed"></a><div id="RemoteConnectionFailed-def"><a name="L228"></a><tt class="py-lineno">228</tt> <a class="py-toggle" href="#" id="RemoteConnectionFailed-toggle" onclick="return toggle('RemoteConnectionFailed');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.RemoteConnectionFailed-class.html">RemoteConnectionFailed</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="ResourceConstraint"></a><div id="ResourceConstraint-def"><a name="L229"></a><tt class="py-lineno">229</tt> <a class="py-toggle" href="#" id="ResourceConstraint-toggle" onclick="return toggle('ResourceConstraint');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.ResourceConstraint-class.html">ResourceConstraint</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="RestrictedXML"></a><div id="RestrictedXML-def"><a name="L230"></a><tt class="py-lineno">230</tt> <a class="py-toggle" href="#" id="RestrictedXML-toggle" onclick="return toggle('RestrictedXML');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.RestrictedXML-class.html">RestrictedXML</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="SeeOtherHost"></a><div id="SeeOtherHost-def"><a name="L231"></a><tt class="py-lineno">231</tt> <a class="py-toggle" href="#" id="SeeOtherHost-toggle" onclick="return toggle('SeeOtherHost');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.SeeOtherHost-class.html">SeeOtherHost</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="SystemShutdown"></a><div id="SystemShutdown-def"><a name="L232"></a><tt class="py-lineno">232</tt> <a class="py-toggle" href="#" id="SystemShutdown-toggle" onclick="return toggle('SystemShutdown');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.SystemShutdown-class.html">SystemShutdown</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="UndefinedCondition"></a><div id="UndefinedCondition-def"><a name="L233"></a><tt class="py-lineno">233</tt> <a class="py-toggle" href="#" id="UndefinedCondition-toggle" onclick="return toggle('UndefinedCondition');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.UndefinedCondition-class.html">UndefinedCondition</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="UnsupportedEncoding"></a><div id="UnsupportedEncoding-def"><a name="L234"></a><tt class="py-lineno">234</tt> <a class="py-toggle" href="#" id="UnsupportedEncoding-toggle" onclick="return toggle('UnsupportedEncoding');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.UnsupportedEncoding-class.html">UnsupportedEncoding</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="UnsupportedStanzaType"></a><div id="UnsupportedStanzaType-def"><a name="L235"></a><tt class="py-lineno">235</tt> <a class="py-toggle" href="#" id="UnsupportedStanzaType-toggle" onclick="return toggle('UnsupportedStanzaType');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.UnsupportedStanzaType-class.html">UnsupportedStanzaType</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="UnsupportedVersion"></a><div id="UnsupportedVersion-def"><a name="L236"></a><tt class="py-lineno">236</tt> <a class="py-toggle" href="#" id="UnsupportedVersion-toggle" onclick="return toggle('UnsupportedVersion');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.UnsupportedVersion-class.html">UnsupportedVersion</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="XMLNotWellFormed"></a><div id="XMLNotWellFormed-def"><a name="L237"></a><tt class="py-lineno">237</tt> <a class="py-toggle" href="#" id="XMLNotWellFormed-toggle" onclick="return toggle('XMLNotWellFormed');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.XMLNotWellFormed-class.html">XMLNotWellFormed</a><tt class="py-op">(</tt><tt class="py-base-class">StreamError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L238"></a><tt class="py-lineno">238</tt>  <tt class="py-line"> </tt>
<a name="L239"></a><tt class="py-lineno">239</tt>  <tt class="py-line"><tt id="link-173" class="py-name" targets="Variable xmpp.protocol.stream_exceptions=xmpp.protocol-module.html#stream_exceptions"><a title="xmpp.protocol.stream_exceptions" class="py-name" href="#" onclick="return doclink('link-173', 'stream_exceptions', 'link-173');">stream_exceptions</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'bad-format'</tt><tt class="py-op">:</tt> <tt id="link-174" class="py-name" targets="Class xmpp.protocol.BadFormat=xmpp.protocol.BadFormat-class.html"><a title="xmpp.protocol.BadFormat" class="py-name" href="#" onclick="return doclink('link-174', 'BadFormat', 'link-174');">BadFormat</a></tt><tt class="py-op">,</tt> </tt>
<a name="L240"></a><tt class="py-lineno">240</tt>  <tt class="py-line">                     <tt class="py-string">'bad-namespace-prefix'</tt><tt class="py-op">:</tt> <tt id="link-175" class="py-name" targets="Class xmpp.protocol.BadNamespacePrefix=xmpp.protocol.BadNamespacePrefix-class.html"><a title="xmpp.protocol.BadNamespacePrefix" class="py-name" href="#" onclick="return doclink('link-175', 'BadNamespacePrefix', 'link-175');">BadNamespacePrefix</a></tt><tt class="py-op">,</tt> </tt>
<a name="L241"></a><tt class="py-lineno">241</tt>  <tt class="py-line">                     <tt class="py-string">'conflict'</tt><tt class="py-op">:</tt> <tt id="link-176" class="py-name" targets="Class xmpp.protocol.Conflict=xmpp.protocol.Conflict-class.html"><a title="xmpp.protocol.Conflict" class="py-name" href="#" onclick="return doclink('link-176', 'Conflict', 'link-176');">Conflict</a></tt><tt class="py-op">,</tt> </tt>
<a name="L242"></a><tt class="py-lineno">242</tt>  <tt class="py-line">                     <tt class="py-string">'connection-timeout'</tt><tt class="py-op">:</tt> <tt id="link-177" class="py-name" targets="Class xmpp.protocol.ConnectionTimeout=xmpp.protocol.ConnectionTimeout-class.html"><a title="xmpp.protocol.ConnectionTimeout" class="py-name" href="#" onclick="return doclink('link-177', 'ConnectionTimeout', 'link-177');">ConnectionTimeout</a></tt><tt class="py-op">,</tt> </tt>
<a name="L243"></a><tt class="py-lineno">243</tt>  <tt class="py-line">                     <tt class="py-string">'host-gone'</tt><tt class="py-op">:</tt> <tt id="link-178" class="py-name" targets="Class xmpp.protocol.HostGone=xmpp.protocol.HostGone-class.html"><a title="xmpp.protocol.HostGone" class="py-name" href="#" onclick="return doclink('link-178', 'HostGone', 'link-178');">HostGone</a></tt><tt class="py-op">,</tt> </tt>
<a name="L244"></a><tt class="py-lineno">244</tt>  <tt class="py-line">                     <tt class="py-string">'host-unknown'</tt><tt class="py-op">:</tt> <tt id="link-179" class="py-name" targets="Class xmpp.protocol.HostUnknown=xmpp.protocol.HostUnknown-class.html"><a title="xmpp.protocol.HostUnknown" class="py-name" href="#" onclick="return doclink('link-179', 'HostUnknown', 'link-179');">HostUnknown</a></tt><tt class="py-op">,</tt> </tt>
<a name="L245"></a><tt class="py-lineno">245</tt>  <tt class="py-line">                     <tt class="py-string">'improper-addressing'</tt><tt class="py-op">:</tt> <tt id="link-180" class="py-name" targets="Class xmpp.protocol.ImproperAddressing=xmpp.protocol.ImproperAddressing-class.html"><a title="xmpp.protocol.ImproperAddressing" class="py-name" href="#" onclick="return doclink('link-180', 'ImproperAddressing', 'link-180');">ImproperAddressing</a></tt><tt class="py-op">,</tt> </tt>
<a name="L246"></a><tt class="py-lineno">246</tt>  <tt class="py-line">                     <tt class="py-string">'internal-server-error'</tt><tt class="py-op">:</tt> <tt id="link-181" class="py-name" targets="Class xmpp.protocol.InternalServerError=xmpp.protocol.InternalServerError-class.html"><a title="xmpp.protocol.InternalServerError" class="py-name" href="#" onclick="return doclink('link-181', 'InternalServerError', 'link-181');">InternalServerError</a></tt><tt class="py-op">,</tt> </tt>
<a name="L247"></a><tt class="py-lineno">247</tt>  <tt class="py-line">                     <tt class="py-string">'invalid-from'</tt><tt class="py-op">:</tt> <tt id="link-182" class="py-name" targets="Class xmpp.protocol.InvalidFrom=xmpp.protocol.InvalidFrom-class.html"><a title="xmpp.protocol.InvalidFrom" class="py-name" href="#" onclick="return doclink('link-182', 'InvalidFrom', 'link-182');">InvalidFrom</a></tt><tt class="py-op">,</tt> </tt>
<a name="L248"></a><tt class="py-lineno">248</tt>  <tt class="py-line">                     <tt class="py-string">'invalid-id'</tt><tt class="py-op">:</tt> <tt id="link-183" class="py-name" targets="Class xmpp.protocol.InvalidID=xmpp.protocol.InvalidID-class.html"><a title="xmpp.protocol.InvalidID" class="py-name" href="#" onclick="return doclink('link-183', 'InvalidID', 'link-183');">InvalidID</a></tt><tt class="py-op">,</tt> </tt>
<a name="L249"></a><tt class="py-lineno">249</tt>  <tt class="py-line">                     <tt class="py-string">'invalid-namespace'</tt><tt class="py-op">:</tt> <tt id="link-184" class="py-name" targets="Class xmpp.protocol.InvalidNamespace=xmpp.protocol.InvalidNamespace-class.html"><a title="xmpp.protocol.InvalidNamespace" class="py-name" href="#" onclick="return doclink('link-184', 'InvalidNamespace', 'link-184');">InvalidNamespace</a></tt><tt class="py-op">,</tt> </tt>
<a name="L250"></a><tt class="py-lineno">250</tt>  <tt class="py-line">                     <tt class="py-string">'invalid-xml'</tt><tt class="py-op">:</tt> <tt id="link-185" class="py-name" targets="Class xmpp.protocol.InvalidXML=xmpp.protocol.InvalidXML-class.html"><a title="xmpp.protocol.InvalidXML" class="py-name" href="#" onclick="return doclink('link-185', 'InvalidXML', 'link-185');">InvalidXML</a></tt><tt class="py-op">,</tt> </tt>
<a name="L251"></a><tt class="py-lineno">251</tt>  <tt class="py-line">                     <tt class="py-string">'not-authorized'</tt><tt class="py-op">:</tt> <tt id="link-186" class="py-name" targets="Class xmpp.protocol.NotAuthorized=xmpp.protocol.NotAuthorized-class.html"><a title="xmpp.protocol.NotAuthorized" class="py-name" href="#" onclick="return doclink('link-186', 'NotAuthorized', 'link-186');">NotAuthorized</a></tt><tt class="py-op">,</tt> </tt>
<a name="L252"></a><tt class="py-lineno">252</tt>  <tt class="py-line">                     <tt class="py-string">'policy-violation'</tt><tt class="py-op">:</tt> <tt id="link-187" class="py-name" targets="Class xmpp.protocol.PolicyViolation=xmpp.protocol.PolicyViolation-class.html"><a title="xmpp.protocol.PolicyViolation" class="py-name" href="#" onclick="return doclink('link-187', 'PolicyViolation', 'link-187');">PolicyViolation</a></tt><tt class="py-op">,</tt> </tt>
<a name="L253"></a><tt class="py-lineno">253</tt>  <tt class="py-line">                     <tt class="py-string">'remote-connection-failed'</tt><tt class="py-op">:</tt> <tt id="link-188" class="py-name" targets="Class xmpp.protocol.RemoteConnectionFailed=xmpp.protocol.RemoteConnectionFailed-class.html"><a title="xmpp.protocol.RemoteConnectionFailed" class="py-name" href="#" onclick="return doclink('link-188', 'RemoteConnectionFailed', 'link-188');">RemoteConnectionFailed</a></tt><tt class="py-op">,</tt> </tt>
<a name="L254"></a><tt class="py-lineno">254</tt>  <tt class="py-line">                     <tt class="py-string">'resource-constraint'</tt><tt class="py-op">:</tt> <tt id="link-189" class="py-name" targets="Class xmpp.protocol.ResourceConstraint=xmpp.protocol.ResourceConstraint-class.html"><a title="xmpp.protocol.ResourceConstraint" class="py-name" href="#" onclick="return doclink('link-189', 'ResourceConstraint', 'link-189');">ResourceConstraint</a></tt><tt class="py-op">,</tt> </tt>
<a name="L255"></a><tt class="py-lineno">255</tt>  <tt class="py-line">                     <tt class="py-string">'restricted-xml'</tt><tt class="py-op">:</tt> <tt id="link-190" class="py-name" targets="Class xmpp.protocol.RestrictedXML=xmpp.protocol.RestrictedXML-class.html"><a title="xmpp.protocol.RestrictedXML" class="py-name" href="#" onclick="return doclink('link-190', 'RestrictedXML', 'link-190');">RestrictedXML</a></tt><tt class="py-op">,</tt> </tt>
<a name="L256"></a><tt class="py-lineno">256</tt>  <tt class="py-line">                     <tt class="py-string">'see-other-host'</tt><tt class="py-op">:</tt> <tt id="link-191" class="py-name" targets="Class xmpp.protocol.SeeOtherHost=xmpp.protocol.SeeOtherHost-class.html"><a title="xmpp.protocol.SeeOtherHost" class="py-name" href="#" onclick="return doclink('link-191', 'SeeOtherHost', 'link-191');">SeeOtherHost</a></tt><tt class="py-op">,</tt> </tt>
<a name="L257"></a><tt class="py-lineno">257</tt>  <tt class="py-line">                     <tt class="py-string">'system-shutdown'</tt><tt class="py-op">:</tt> <tt id="link-192" class="py-name" targets="Class xmpp.protocol.SystemShutdown=xmpp.protocol.SystemShutdown-class.html"><a title="xmpp.protocol.SystemShutdown" class="py-name" href="#" onclick="return doclink('link-192', 'SystemShutdown', 'link-192');">SystemShutdown</a></tt><tt class="py-op">,</tt> </tt>
<a name="L258"></a><tt class="py-lineno">258</tt>  <tt class="py-line">                     <tt class="py-string">'undefined-condition'</tt><tt class="py-op">:</tt> <tt id="link-193" class="py-name" targets="Class xmpp.protocol.UndefinedCondition=xmpp.protocol.UndefinedCondition-class.html"><a title="xmpp.protocol.UndefinedCondition" class="py-name" href="#" onclick="return doclink('link-193', 'UndefinedCondition', 'link-193');">UndefinedCondition</a></tt><tt class="py-op">,</tt> </tt>
<a name="L259"></a><tt class="py-lineno">259</tt>  <tt class="py-line">                     <tt class="py-string">'unsupported-encoding'</tt><tt class="py-op">:</tt> <tt id="link-194" class="py-name" targets="Class xmpp.protocol.UnsupportedEncoding=xmpp.protocol.UnsupportedEncoding-class.html"><a title="xmpp.protocol.UnsupportedEncoding" class="py-name" href="#" onclick="return doclink('link-194', 'UnsupportedEncoding', 'link-194');">UnsupportedEncoding</a></tt><tt class="py-op">,</tt> </tt>
<a name="L260"></a><tt class="py-lineno">260</tt>  <tt class="py-line">                     <tt class="py-string">'unsupported-stanza-type'</tt><tt class="py-op">:</tt> <tt id="link-195" class="py-name" targets="Class xmpp.protocol.UnsupportedStanzaType=xmpp.protocol.UnsupportedStanzaType-class.html"><a title="xmpp.protocol.UnsupportedStanzaType" class="py-name" href="#" onclick="return doclink('link-195', 'UnsupportedStanzaType', 'link-195');">UnsupportedStanzaType</a></tt><tt class="py-op">,</tt> </tt>
<a name="L261"></a><tt class="py-lineno">261</tt>  <tt class="py-line">                     <tt class="py-string">'unsupported-version'</tt><tt class="py-op">:</tt> <tt id="link-196" class="py-name" targets="Class xmpp.protocol.UnsupportedVersion=xmpp.protocol.UnsupportedVersion-class.html"><a title="xmpp.protocol.UnsupportedVersion" class="py-name" href="#" onclick="return doclink('link-196', 'UnsupportedVersion', 'link-196');">UnsupportedVersion</a></tt><tt class="py-op">,</tt> </tt>
<a name="L262"></a><tt class="py-lineno">262</tt>  <tt class="py-line">                     <tt class="py-string">'xml-not-well-formed'</tt><tt class="py-op">:</tt> <tt id="link-197" class="py-name" targets="Class xmpp.protocol.XMLNotWellFormed=xmpp.protocol.XMLNotWellFormed-class.html"><a title="xmpp.protocol.XMLNotWellFormed" class="py-name" href="#" onclick="return doclink('link-197', 'XMLNotWellFormed', 'link-197');">XMLNotWellFormed</a></tt><tt class="py-op">}</tt> </tt>
<a name="L263"></a><tt class="py-lineno">263</tt>  <tt class="py-line"> </tt>
<a name="JID"></a><div id="JID-def"><a name="L264"></a><tt class="py-lineno">264</tt> <a class="py-toggle" href="#" id="JID-toggle" onclick="return toggle('JID');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.JID-class.html">JID</a><tt class="py-op">:</tt> </tt>
</div><div id="JID-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="JID-expanded"><a name="L265"></a><tt class="py-lineno">265</tt>  <tt class="py-line">    <tt class="py-docstring">""" JID object. JID can be built from string, modified, compared, serialised into string. """</tt> </tt>
<a name="JID.__init__"></a><div id="JID.__init__-def"><a name="L266"></a><tt class="py-lineno">266</tt> <a class="py-toggle" href="#" id="JID.__init__-toggle" onclick="return toggle('JID.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.JID-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">jid</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">node</tt><tt class="py-op">=</tt><tt class="py-string">''</tt><tt class="py-op">,</tt> <tt class="py-param">domain</tt><tt class="py-op">=</tt><tt class="py-string">''</tt><tt class="py-op">,</tt> <tt class="py-param">resource</tt><tt class="py-op">=</tt><tt class="py-string">''</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JID.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="JID.__init__-expanded"><a name="L267"></a><tt class="py-lineno">267</tt>  <tt class="py-line">        <tt class="py-docstring">""" Constructor. JID can be specified as string (jid argument) or as separate parts.</tt> </tt>
<a name="L268"></a><tt class="py-lineno">268</tt>  <tt class="py-line"><tt class="py-docstring">            Examples:</tt> </tt>
<a name="L269"></a><tt class="py-lineno">269</tt>  <tt class="py-line"><tt class="py-docstring">            JID('node@domain/resource')</tt> </tt>
<a name="L270"></a><tt class="py-lineno">270</tt>  <tt class="py-line"><tt class="py-docstring">            JID(node='node',domain='domain.org')</tt> </tt>
<a name="L271"></a><tt class="py-lineno">271</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L272"></a><tt class="py-lineno">272</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">jid</tt> <tt class="py-keyword">and</tt> <tt class="py-keyword">not</tt> <tt class="py-name">domain</tt><tt class="py-op">:</tt> <tt class="py-keyword">raise</tt> <tt class="py-name">ValueError</tt><tt class="py-op">(</tt><tt class="py-string">'JID must contain at least domain name'</tt><tt class="py-op">)</tt> </tt>
<a name="L273"></a><tt class="py-lineno">273</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">jid</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">node</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">domain</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">resource</tt><tt class="py-op">=</tt><tt class="py-name">jid</tt><tt class="py-op">.</tt><tt class="py-name">node</tt><tt class="py-op">,</tt><tt class="py-name">jid</tt><tt class="py-op">.</tt><tt class="py-name">domain</tt><tt class="py-op">,</tt><tt class="py-name">jid</tt><tt class="py-op">.</tt><tt class="py-name">resource</tt> </tt>
<a name="L274"></a><tt class="py-lineno">274</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">domain</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">node</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">domain</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">resource</tt><tt class="py-op">=</tt><tt class="py-name">node</tt><tt class="py-op">,</tt><tt class="py-name">domain</tt><tt class="py-op">,</tt><tt class="py-name">resource</tt> </tt>
<a name="L275"></a><tt class="py-lineno">275</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L276"></a><tt class="py-lineno">276</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">jid</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt class="py-string">'@'</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">node</tt><tt class="py-op">,</tt><tt class="py-name">jid</tt><tt class="py-op">=</tt><tt class="py-name">jid</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">'@'</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L277"></a><tt class="py-lineno">277</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">node</tt><tt class="py-op">=</tt><tt class="py-string">''</tt> </tt>
<a name="L278"></a><tt class="py-lineno">278</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">jid</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt class="py-string">'/'</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">domain</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">resource</tt><tt class="py-op">=</tt><tt class="py-name">jid</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">'/'</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L279"></a><tt class="py-lineno">279</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">domain</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">resource</tt><tt class="py-op">=</tt><tt class="py-name">jid</tt><tt class="py-op">,</tt><tt class="py-string">''</tt> </tt>
</div><a name="JID.getNode"></a><div id="JID.getNode-def"><a name="L280"></a><tt class="py-lineno">280</tt> <a class="py-toggle" href="#" id="JID.getNode-toggle" onclick="return toggle('JID.getNode');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.JID-class.html#getNode">getNode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JID.getNode-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="JID.getNode-expanded"><a name="L281"></a><tt class="py-lineno">281</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the node part of the JID """</tt> </tt>
<a name="L282"></a><tt class="py-lineno">282</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">node</tt> </tt>
</div><a name="JID.setNode"></a><div id="JID.setNode-def"><a name="L283"></a><tt class="py-lineno">283</tt> <a class="py-toggle" href="#" id="JID.setNode-toggle" onclick="return toggle('JID.setNode');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.JID-class.html#setNode">setNode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">node</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JID.setNode-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="JID.setNode-expanded"><a name="L284"></a><tt class="py-lineno">284</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the node part of the JID to new value. Specify None to remove the node part."""</tt> </tt>
<a name="L285"></a><tt class="py-lineno">285</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">node</tt><tt class="py-op">=</tt><tt class="py-name">node</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="JID.getDomain"></a><div id="JID.getDomain-def"><a name="L286"></a><tt class="py-lineno">286</tt> <a class="py-toggle" href="#" id="JID.getDomain-toggle" onclick="return toggle('JID.getDomain');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.JID-class.html#getDomain">getDomain</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JID.getDomain-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="JID.getDomain-expanded"><a name="L287"></a><tt class="py-lineno">287</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the domain part of the JID """</tt> </tt>
<a name="L288"></a><tt class="py-lineno">288</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">domain</tt> </tt>
</div><a name="JID.setDomain"></a><div id="JID.setDomain-def"><a name="L289"></a><tt class="py-lineno">289</tt> <a class="py-toggle" href="#" id="JID.setDomain-toggle" onclick="return toggle('JID.setDomain');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.JID-class.html#setDomain">setDomain</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">domain</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JID.setDomain-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="JID.setDomain-expanded"><a name="L290"></a><tt class="py-lineno">290</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the domain part of the JID to new value."""</tt> </tt>
<a name="L291"></a><tt class="py-lineno">291</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">domain</tt><tt class="py-op">=</tt><tt class="py-name">domain</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="JID.getResource"></a><div id="JID.getResource-def"><a name="L292"></a><tt class="py-lineno">292</tt> <a class="py-toggle" href="#" id="JID.getResource-toggle" onclick="return toggle('JID.getResource');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.JID-class.html#getResource">getResource</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JID.getResource-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="JID.getResource-expanded"><a name="L293"></a><tt class="py-lineno">293</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the resource part of the JID """</tt> </tt>
<a name="L294"></a><tt class="py-lineno">294</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">resource</tt> </tt>
</div><a name="JID.setResource"></a><div id="JID.setResource-def"><a name="L295"></a><tt class="py-lineno">295</tt> <a class="py-toggle" href="#" id="JID.setResource-toggle" onclick="return toggle('JID.setResource');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.JID-class.html#setResource">setResource</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">resource</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JID.setResource-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="JID.setResource-expanded"><a name="L296"></a><tt class="py-lineno">296</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the resource part of the JID to new value. Specify None to remove the resource part."""</tt> </tt>
<a name="L297"></a><tt class="py-lineno">297</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">resource</tt><tt class="py-op">=</tt><tt class="py-name">resource</tt> </tt>
</div><a name="JID.getStripped"></a><div id="JID.getStripped-def"><a name="L298"></a><tt class="py-lineno">298</tt> <a class="py-toggle" href="#" id="JID.getStripped-toggle" onclick="return toggle('JID.getStripped');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.JID-class.html#getStripped">getStripped</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JID.getStripped-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="JID.getStripped-expanded"><a name="L299"></a><tt class="py-lineno">299</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the bare representation of JID. I.e. string value w/o resource. """</tt> </tt>
<a name="L300"></a><tt class="py-lineno">300</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-198" class="py-name" targets="Method xmpp.protocol.JID.__str__()=xmpp.protocol.JID-class.html#__str__,Method xmpp.simplexml.Node.__str__()=xmpp.simplexml.Node-class.html#__str__,Method xmpp.transports.error.__str__()=xmpp.transports.error-class.html#__str__"><a title="xmpp.protocol.JID.__str__
xmpp.simplexml.Node.__str__
xmpp.transports.error.__str__" class="py-name" href="#" onclick="return doclink('link-198', '__str__', 'link-198');">__str__</a></tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
</div><a name="JID.__eq__"></a><div id="JID.__eq__-def"><a name="L301"></a><tt class="py-lineno">301</tt> <a class="py-toggle" href="#" id="JID.__eq__-toggle" onclick="return toggle('JID.__eq__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.JID-class.html#__eq__">__eq__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">other</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JID.__eq__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="JID.__eq__-expanded"><a name="L302"></a><tt class="py-lineno">302</tt>  <tt class="py-line">        <tt class="py-docstring">""" Compare the JID to another instance or to string for equality. """</tt> </tt>
<a name="L303"></a><tt class="py-lineno">303</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> <tt class="py-name">other</tt><tt class="py-op">=</tt><tt id="link-199" class="py-name" targets="Class xmpp.protocol.JID=xmpp.protocol.JID-class.html"><a title="xmpp.protocol.JID" class="py-name" href="#" onclick="return doclink('link-199', 'JID', 'link-199');">JID</a></tt><tt class="py-op">(</tt><tt class="py-name">other</tt><tt class="py-op">)</tt> </tt>
<a name="L304"></a><tt class="py-lineno">304</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">ValueError</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-number">0</tt> </tt>
<a name="L305"></a><tt class="py-lineno">305</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">resource</tt><tt class="py-op">==</tt><tt class="py-name">other</tt><tt class="py-op">.</tt><tt class="py-name">resource</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-200" class="py-name"><a title="xmpp.protocol.JID.__str__
xmpp.simplexml.Node.__str__
xmpp.transports.error.__str__" class="py-name" href="#" onclick="return doclink('link-200', '__str__', 'link-198');">__str__</a></tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">other</tt><tt class="py-op">.</tt><tt id="link-201" class="py-name"><a title="xmpp.protocol.JID.__str__
xmpp.simplexml.Node.__str__
xmpp.transports.error.__str__" class="py-name" href="#" onclick="return doclink('link-201', '__str__', 'link-198');">__str__</a></tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
</div><a name="JID.__ne__"></a><div id="JID.__ne__-def"><a name="L306"></a><tt class="py-lineno">306</tt> <a class="py-toggle" href="#" id="JID.__ne__-toggle" onclick="return toggle('JID.__ne__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.JID-class.html#__ne__">__ne__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">other</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JID.__ne__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="JID.__ne__-expanded"><a name="L307"></a><tt class="py-lineno">307</tt>  <tt class="py-line">        <tt class="py-docstring">""" Compare the JID to another instance or to string for non-equality. """</tt> </tt>
<a name="L308"></a><tt class="py-lineno">308</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-202" class="py-name" targets="Method xmpp.protocol.JID.__eq__()=xmpp.protocol.JID-class.html#__eq__"><a title="xmpp.protocol.JID.__eq__" class="py-name" href="#" onclick="return doclink('link-202', '__eq__', 'link-202');">__eq__</a></tt><tt class="py-op">(</tt><tt class="py-name">other</tt><tt class="py-op">)</tt> </tt>
</div><a name="JID.bareMatch"></a><div id="JID.bareMatch-def"><a name="L309"></a><tt class="py-lineno">309</tt> <a class="py-toggle" href="#" id="JID.bareMatch-toggle" onclick="return toggle('JID.bareMatch');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.JID-class.html#bareMatch">bareMatch</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">other</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JID.bareMatch-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="JID.bareMatch-expanded"><a name="L310"></a><tt class="py-lineno">310</tt>  <tt class="py-line">        <tt class="py-docstring">""" Compare the node and domain parts of the JID's for equality. """</tt> </tt>
<a name="L311"></a><tt class="py-lineno">311</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-203" class="py-name"><a title="xmpp.protocol.JID.__str__
xmpp.simplexml.Node.__str__
xmpp.transports.error.__str__" class="py-name" href="#" onclick="return doclink('link-203', '__str__', 'link-198');">__str__</a></tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt id="link-204" class="py-name"><a title="xmpp.protocol.JID" class="py-name" href="#" onclick="return doclink('link-204', 'JID', 'link-199');">JID</a></tt><tt class="py-op">(</tt><tt class="py-name">other</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-205" class="py-name"><a title="xmpp.protocol.JID.__str__
xmpp.simplexml.Node.__str__
xmpp.transports.error.__str__" class="py-name" href="#" onclick="return doclink('link-205', '__str__', 'link-198');">__str__</a></tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
</div><a name="JID.__str__"></a><div id="JID.__str__-def"><a name="L312"></a><tt class="py-lineno">312</tt> <a class="py-toggle" href="#" id="JID.__str__-toggle" onclick="return toggle('JID.__str__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.JID-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">wresource</tt><tt class="py-op">=</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JID.__str__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="JID.__str__-expanded"><a name="L313"></a><tt class="py-lineno">313</tt>  <tt class="py-line">        <tt class="py-docstring">""" Serialise JID into string. """</tt> </tt>
<a name="L314"></a><tt class="py-lineno">314</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">node</tt><tt class="py-op">:</tt> <tt class="py-name">jid</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">node</tt><tt class="py-op">+</tt><tt class="py-string">'@'</tt><tt class="py-op">+</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">domain</tt> </tt>
<a name="L315"></a><tt class="py-lineno">315</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">jid</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">domain</tt> </tt>
<a name="L316"></a><tt class="py-lineno">316</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">wresource</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">resource</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">jid</tt><tt class="py-op">+</tt><tt class="py-string">'/'</tt><tt class="py-op">+</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">resource</tt> </tt>
<a name="L317"></a><tt class="py-lineno">317</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">jid</tt> </tt>
</div><a name="JID.__hash__"></a><div id="JID.__hash__-def"><a name="L318"></a><tt class="py-lineno">318</tt> <a class="py-toggle" href="#" id="JID.__hash__-toggle" onclick="return toggle('JID.__hash__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.JID-class.html#__hash__">__hash__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JID.__hash__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="JID.__hash__-expanded"><a name="L319"></a><tt class="py-lineno">319</tt>  <tt class="py-line">        <tt class="py-docstring">""" Produce hash of the JID, Allows to use JID objects as keys of the dictionary. """</tt> </tt>
<a name="L320"></a><tt class="py-lineno">320</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">hash</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-206" class="py-name"><a title="xmpp.protocol.JID.__str__
xmpp.simplexml.Node.__str__
xmpp.transports.error.__str__" class="py-name" href="#" onclick="return doclink('link-206', '__str__', 'link-198');">__str__</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L321"></a><tt class="py-lineno">321</tt>  <tt class="py-line"> </tt>
<a name="Protocol"></a><div id="Protocol-def"><a name="L322"></a><tt class="py-lineno">322</tt> <a class="py-toggle" href="#" id="Protocol-toggle" onclick="return toggle('Protocol');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html">Protocol</a><tt class="py-op">(</tt><tt class="py-base-class">Node</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Protocol-expanded"><a name="L323"></a><tt class="py-lineno">323</tt>  <tt class="py-line">    <tt class="py-docstring">""" A "stanza" object class. Contains methods that are common for presences, iqs and messages. """</tt> </tt>
<a name="Protocol.__init__"></a><div id="Protocol.__init__-def"><a name="L324"></a><tt class="py-lineno">324</tt> <a class="py-toggle" href="#" id="Protocol.__init__-toggle" onclick="return toggle('Protocol.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">to</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">typ</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">frm</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">attrs</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">,</tt> <tt class="py-param">payload</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-param">timestamp</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">xmlns</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">node</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.__init__-expanded"><a name="L325"></a><tt class="py-lineno">325</tt>  <tt class="py-line">        <tt class="py-docstring">""" Constructor, name is the name of the stanza i.e. 'message' or 'presence' or 'iq'.</tt> </tt>
<a name="L326"></a><tt class="py-lineno">326</tt>  <tt class="py-line"><tt class="py-docstring">            to is the value of 'to' attribure, 'typ' - 'type' attribute</tt> </tt>
<a name="L327"></a><tt class="py-lineno">327</tt>  <tt class="py-line"><tt class="py-docstring">            frn - from attribure, attrs - other attributes mapping, payload - same meaning as for simplexml payload definition</tt> </tt>
<a name="L328"></a><tt class="py-lineno">328</tt>  <tt class="py-line"><tt class="py-docstring">            timestamp - the time value that needs to be stamped over stanza</tt> </tt>
<a name="L329"></a><tt class="py-lineno">329</tt>  <tt class="py-line"><tt class="py-docstring">            xmlns - namespace of top stanza node</tt> </tt>
<a name="L330"></a><tt class="py-lineno">330</tt>  <tt class="py-line"><tt class="py-docstring">            node - parsed or unparsed stana to be taken as prototype.</tt> </tt>
<a name="L331"></a><tt class="py-lineno">331</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L332"></a><tt class="py-lineno">332</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">attrs</tt><tt class="py-op">:</tt> <tt class="py-name">attrs</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L333"></a><tt class="py-lineno">333</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">to</tt><tt class="py-op">:</tt> <tt class="py-name">attrs</tt><tt class="py-op">[</tt><tt class="py-string">'to'</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">to</tt> </tt>
<a name="L334"></a><tt class="py-lineno">334</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">frm</tt><tt class="py-op">:</tt> <tt class="py-name">attrs</tt><tt class="py-op">[</tt><tt class="py-string">'from'</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">frm</tt> </tt>
<a name="L335"></a><tt class="py-lineno">335</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">typ</tt><tt class="py-op">:</tt> <tt class="py-name">attrs</tt><tt class="py-op">[</tt><tt class="py-string">'type'</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">typ</tt> </tt>
<a name="L336"></a><tt class="py-lineno">336</tt>  <tt class="py-line">        <tt id="link-207" class="py-name"><a title="xmpp.simplexml.Node" class="py-name" href="#" onclick="return doclink('link-207', 'Node', 'link-1');">Node</a></tt><tt class="py-op">.</tt><tt id="link-208" class="py-name" targets="Method xmpp.auth.Bind.__init__()=xmpp.auth.Bind-class.html#__init__,Method xmpp.auth.ComponentBind.__init__()=xmpp.auth.ComponentBind-class.html#__init__,Method xmpp.auth.NonSASL.__init__()=xmpp.auth.NonSASL-class.html#__init__,Method xmpp.auth.SASL.__init__()=xmpp.auth.SASL-class.html#__init__,Method xmpp.browser.Browser.__init__()=xmpp.browser.Browser-class.html#__init__,Method xmpp.client.CommonClient.__init__()=xmpp.client.CommonClient-class.html#__init__,Method xmpp.client.Component.__init__()=xmpp.client.Component-class.html#__init__,Method xmpp.client.PlugIn.__init__()=xmpp.client.PlugIn-class.html#__init__,Method xmpp.commands.Command_Handler_Prototype.__init__()=xmpp.commands.Command_Handler_Prototype-class.html#__init__,Method xmpp.commands.Commands.__init__()=xmpp.commands.Commands-class.html#__init__,Method xmpp.commands.TestCommand.__init__()=xmpp.commands.TestCommand-class.html#__init__,Method xmpp.debug.Debug.__init__()=xmpp.debug.Debug-class.html#__init__,Method xmpp.debug.NoDebug.__init__()=xmpp.debug.NoDebug-class.html#__init__,Method xmpp.dispatcher.Dispatcher.__init__()=xmpp.dispatcher.Dispatcher-class.html#__init__,Method xmpp.filetransfer.IBB.__init__()=xmpp.filetransfer.IBB-class.html#__init__,Method xmpp.protocol.DataField.__init__()=xmpp.protocol.DataField-class.html#__init__,Method xmpp.protocol.DataForm.__init__()=xmpp.protocol.DataForm-class.html#__init__,Method xmpp.protocol.Error.__init__()=xmpp.protocol.Error-class.html#__init__,Method xmpp.protocol.ErrorNode.__init__()=xmpp.protocol.ErrorNode-class.html#__init__,Method xmpp.protocol.Iq.__init__()=xmpp.protocol.Iq-class.html#__init__,Method xmpp.protocol.JID.__init__()=xmpp.protocol.JID-class.html#__init__,Method xmpp.protocol.Message.__init__()=xmpp.protocol.Message-class.html#__init__,Method xmpp.protocol.Presence.__init__()=xmpp.protocol.Presence-class.html#__init__,Method xmpp.protocol.Protocol.__init__()=xmpp.protocol.Protocol-class.html#__init__,Method xmpp.roster.Roster.__init__()=xmpp.roster.Roster-class.html#__init__,Method xmpp.session.Session.__init__()=xmpp.session.Session-class.html#__init__,Method xmpp.simplexml.Node.__init__()=xmpp.simplexml.Node-class.html#__init__,Method xmpp.simplexml.NodeBuilder.__init__()=xmpp.simplexml.NodeBuilder-class.html#__init__,Method xmpp.simplexml.T.__init__()=xmpp.simplexml.T-class.html#__init__,Method xmpp.transports.HTTPPROXYsocket.__init__()=xmpp.transports.HTTPPROXYsocket-class.html#__init__,Method xmpp.transports.TCPsocket.__init__()=xmpp.transports.TCPsocket-class.html#__init__,Method xmpp.transports.error.__init__()=xmpp.transports.error-class.html#__init__"><a title="xmpp.auth.Bind.__init__
xmpp.auth.ComponentBind.__init__
xmpp.auth.NonSASL.__init__
xmpp.auth.SASL.__init__
xmpp.browser.Browser.__init__
xmpp.client.CommonClient.__init__
xmpp.client.Component.__init__
xmpp.client.PlugIn.__init__
xmpp.commands.Command_Handler_Prototype.__init__
xmpp.commands.Commands.__init__
xmpp.commands.TestCommand.__init__
xmpp.debug.Debug.__init__
xmpp.debug.NoDebug.__init__
xmpp.dispatcher.Dispatcher.__init__
xmpp.filetransfer.IBB.__init__
xmpp.protocol.DataField.__init__
xmpp.protocol.DataForm.__init__
xmpp.protocol.Error.__init__
xmpp.protocol.ErrorNode.__init__
xmpp.protocol.Iq.__init__
xmpp.protocol.JID.__init__
xmpp.protocol.Message.__init__
xmpp.protocol.Presence.__init__
xmpp.protocol.Protocol.__init__
xmpp.roster.Roster.__init__
xmpp.session.Session.__init__
xmpp.simplexml.Node.__init__
xmpp.simplexml.NodeBuilder.__init__
xmpp.simplexml.T.__init__
xmpp.transports.HTTPPROXYsocket.__init__
xmpp.transports.TCPsocket.__init__
xmpp.transports.error.__init__" class="py-name" href="#" onclick="return doclink('link-208', '__init__', 'link-208');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">tag</tt><tt class="py-op">=</tt><tt id="link-209" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-209', 'name', 'link-167');">name</a></tt><tt class="py-op">,</tt> <tt class="py-name">attrs</tt><tt class="py-op">=</tt><tt class="py-name">attrs</tt><tt class="py-op">,</tt> <tt class="py-name">payload</tt><tt class="py-op">=</tt><tt class="py-name">payload</tt><tt class="py-op">,</tt> <tt class="py-name">node</tt><tt class="py-op">=</tt><tt class="py-name">node</tt><tt class="py-op">)</tt> </tt>
<a name="L337"></a><tt class="py-lineno">337</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">node</tt> <tt class="py-keyword">and</tt> <tt class="py-name">xmlns</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-210" class="py-name" targets="Method xmpp.simplexml.Node.setNamespace()=xmpp.simplexml.Node-class.html#setNamespace"><a title="xmpp.simplexml.Node.setNamespace" class="py-name" href="#" onclick="return doclink('link-210', 'setNamespace', 'link-210');">setNamespace</a></tt><tt class="py-op">(</tt><tt class="py-name">xmlns</tt><tt class="py-op">)</tt> </tt>
<a name="L338"></a><tt class="py-lineno">338</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'to'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-211" class="py-name" targets="Method xmpp.protocol.Protocol.setTo()=xmpp.protocol.Protocol-class.html#setTo"><a title="xmpp.protocol.Protocol.setTo" class="py-name" href="#" onclick="return doclink('link-211', 'setTo', 'link-211');">setTo</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'to'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L339"></a><tt class="py-lineno">339</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'from'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-212" class="py-name" targets="Method xmpp.protocol.Protocol.setFrom()=xmpp.protocol.Protocol-class.html#setFrom"><a title="xmpp.protocol.Protocol.setFrom" class="py-name" href="#" onclick="return doclink('link-212', 'setFrom', 'link-212');">setFrom</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'from'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L340"></a><tt class="py-lineno">340</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">node</tt> <tt class="py-keyword">and</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">node</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">==</tt><tt class="py-name">node</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">attrs</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">'id'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">attrs</tt><tt class="py-op">[</tt><tt class="py-string">'id'</tt><tt class="py-op">]</tt> </tt>
<a name="L341"></a><tt class="py-lineno">341</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">timestamp</tt><tt class="py-op">=</tt><tt class="py-name">None</tt> </tt>
<a name="L342"></a><tt class="py-lineno">342</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">x</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-213" class="py-name" targets="Method xmpp.simplexml.Node.getTags()=xmpp.simplexml.Node-class.html#getTags"><a title="xmpp.simplexml.Node.getTags" class="py-name" href="#" onclick="return doclink('link-213', 'getTags', 'link-213');">getTags</a></tt><tt class="py-op">(</tt><tt class="py-string">'x'</tt><tt class="py-op">,</tt><tt class="py-name">namespace</tt><tt class="py-op">=</tt><tt id="link-214" class="py-name"><a title="xmpp.protocol.NS_DELAY" class="py-name" href="#" onclick="return doclink('link-214', 'NS_DELAY', 'link-85');">NS_DELAY</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L343"></a><tt class="py-lineno">343</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L344"></a><tt class="py-lineno">344</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-215" class="py-name" targets="Method xmpp.protocol.Protocol.getTimestamp()=xmpp.protocol.Protocol-class.html#getTimestamp"><a title="xmpp.protocol.Protocol.getTimestamp" class="py-name" href="#" onclick="return doclink('link-215', 'getTimestamp', 'link-215');">getTimestamp</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-keyword">or</tt> <tt class="py-name">x</tt><tt class="py-op">.</tt><tt id="link-216" class="py-name" targets="Method xmpp.simplexml.Node.getAttr()=xmpp.simplexml.Node-class.html#getAttr"><a title="xmpp.simplexml.Node.getAttr" class="py-name" href="#" onclick="return doclink('link-216', 'getAttr', 'link-216');">getAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'stamp'</tt><tt class="py-op">)</tt><tt class="py-op">&lt;</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-217" class="py-name"><a title="xmpp.protocol.Protocol.getTimestamp" class="py-name" href="#" onclick="return doclink('link-217', 'getTimestamp', 'link-215');">getTimestamp</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-218" class="py-name" targets="Method xmpp.protocol.Protocol.setTimestamp()=xmpp.protocol.Protocol-class.html#setTimestamp"><a title="xmpp.protocol.Protocol.setTimestamp" class="py-name" href="#" onclick="return doclink('link-218', 'setTimestamp', 'link-218');">setTimestamp</a></tt><tt class="py-op">(</tt><tt class="py-name">x</tt><tt class="py-op">.</tt><tt id="link-219" class="py-name"><a title="xmpp.simplexml.Node.getAttr" class="py-name" href="#" onclick="return doclink('link-219', 'getAttr', 'link-216');">getAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'stamp'</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L345"></a><tt class="py-lineno">345</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
<a name="L346"></a><tt class="py-lineno">346</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">timestamp</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-220" class="py-name"><a title="xmpp.protocol.Protocol.setTimestamp" class="py-name" href="#" onclick="return doclink('link-220', 'setTimestamp', 'link-218');">setTimestamp</a></tt><tt class="py-op">(</tt><tt class="py-name">timestamp</tt><tt class="py-op">)</tt>  <tt class="py-comment"># To auto-timestamp stanza just pass timestamp=''</tt> </tt>
</div><a name="Protocol.getTo"></a><div id="Protocol.getTo-def"><a name="L347"></a><tt class="py-lineno">347</tt> <a class="py-toggle" href="#" id="Protocol.getTo-toggle" onclick="return toggle('Protocol.getTo');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#getTo">getTo</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.getTo-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.getTo-expanded"><a name="L348"></a><tt class="py-lineno">348</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return value of the 'to' attribute. """</tt> </tt>
<a name="L349"></a><tt class="py-lineno">349</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'to'</tt><tt class="py-op">]</tt> </tt>
<a name="L350"></a><tt class="py-lineno">350</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="Protocol.getFrom"></a><div id="Protocol.getFrom-def"><a name="L351"></a><tt class="py-lineno">351</tt> <a class="py-toggle" href="#" id="Protocol.getFrom-toggle" onclick="return toggle('Protocol.getFrom');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#getFrom">getFrom</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.getFrom-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.getFrom-expanded"><a name="L352"></a><tt class="py-lineno">352</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return value of the 'from' attribute. """</tt> </tt>
<a name="L353"></a><tt class="py-lineno">353</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'from'</tt><tt class="py-op">]</tt> </tt>
<a name="L354"></a><tt class="py-lineno">354</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="Protocol.getTimestamp"></a><div id="Protocol.getTimestamp-def"><a name="L355"></a><tt class="py-lineno">355</tt> <a class="py-toggle" href="#" id="Protocol.getTimestamp-toggle" onclick="return toggle('Protocol.getTimestamp');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#getTimestamp">getTimestamp</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.getTimestamp-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.getTimestamp-expanded"><a name="L356"></a><tt class="py-lineno">356</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the timestamp in the 'yyyymmddThhmmss' format. """</tt> </tt>
<a name="L357"></a><tt class="py-lineno">357</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">timestamp</tt> </tt>
</div><a name="Protocol.getID"></a><div id="Protocol.getID-def"><a name="L358"></a><tt class="py-lineno">358</tt> <a class="py-toggle" href="#" id="Protocol.getID-toggle" onclick="return toggle('Protocol.getID');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#getID">getID</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.getID-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.getID-expanded"><a name="L359"></a><tt class="py-lineno">359</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the value of the 'id' attribute. """</tt> </tt>
<a name="L360"></a><tt class="py-lineno">360</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-221" class="py-name"><a title="xmpp.simplexml.Node.getAttr" class="py-name" href="#" onclick="return doclink('link-221', 'getAttr', 'link-216');">getAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'id'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Protocol.setTo"></a><div id="Protocol.setTo-def"><a name="L361"></a><tt class="py-lineno">361</tt> <a class="py-toggle" href="#" id="Protocol.setTo-toggle" onclick="return toggle('Protocol.setTo');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#setTo">setTo</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.setTo-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.setTo-expanded"><a name="L362"></a><tt class="py-lineno">362</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the value of the 'to' attribute. """</tt> </tt>
<a name="L363"></a><tt class="py-lineno">363</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-222" class="py-name" targets="Method xmpp.simplexml.Node.setAttr()=xmpp.simplexml.Node-class.html#setAttr"><a title="xmpp.simplexml.Node.setAttr" class="py-name" href="#" onclick="return doclink('link-222', 'setAttr', 'link-222');">setAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'to'</tt><tt class="py-op">,</tt> <tt id="link-223" class="py-name"><a title="xmpp.protocol.JID" class="py-name" href="#" onclick="return doclink('link-223', 'JID', 'link-199');">JID</a></tt><tt class="py-op">(</tt><tt class="py-name">val</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="Protocol.getType"></a><div id="Protocol.getType-def"><a name="L364"></a><tt class="py-lineno">364</tt> <a class="py-toggle" href="#" id="Protocol.getType-toggle" onclick="return toggle('Protocol.getType');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#getType">getType</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.getType-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.getType-expanded"><a name="L365"></a><tt class="py-lineno">365</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the value of the 'type' attribute. """</tt> </tt>
<a name="L366"></a><tt class="py-lineno">366</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-224" class="py-name"><a title="xmpp.simplexml.Node.getAttr" class="py-name" href="#" onclick="return doclink('link-224', 'getAttr', 'link-216');">getAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'type'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Protocol.setFrom"></a><div id="Protocol.setFrom-def"><a name="L367"></a><tt class="py-lineno">367</tt> <a class="py-toggle" href="#" id="Protocol.setFrom-toggle" onclick="return toggle('Protocol.setFrom');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#setFrom">setFrom</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.setFrom-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.setFrom-expanded"><a name="L368"></a><tt class="py-lineno">368</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the value of the 'from' attribute. """</tt> </tt>
<a name="L369"></a><tt class="py-lineno">369</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-225" class="py-name"><a title="xmpp.simplexml.Node.setAttr" class="py-name" href="#" onclick="return doclink('link-225', 'setAttr', 'link-222');">setAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'from'</tt><tt class="py-op">,</tt> <tt id="link-226" class="py-name"><a title="xmpp.protocol.JID" class="py-name" href="#" onclick="return doclink('link-226', 'JID', 'link-199');">JID</a></tt><tt class="py-op">(</tt><tt class="py-name">val</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="Protocol.setType"></a><div id="Protocol.setType-def"><a name="L370"></a><tt class="py-lineno">370</tt> <a class="py-toggle" href="#" id="Protocol.setType-toggle" onclick="return toggle('Protocol.setType');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#setType">setType</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.setType-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.setType-expanded"><a name="L371"></a><tt class="py-lineno">371</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the value of the 'type' attribute. """</tt> </tt>
<a name="L372"></a><tt class="py-lineno">372</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-227" class="py-name"><a title="xmpp.simplexml.Node.setAttr" class="py-name" href="#" onclick="return doclink('link-227', 'setAttr', 'link-222');">setAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'type'</tt><tt class="py-op">,</tt> <tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
</div><a name="Protocol.setID"></a><div id="Protocol.setID-def"><a name="L373"></a><tt class="py-lineno">373</tt> <a class="py-toggle" href="#" id="Protocol.setID-toggle" onclick="return toggle('Protocol.setID');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#setID">setID</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.setID-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.setID-expanded"><a name="L374"></a><tt class="py-lineno">374</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the value of the 'id' attribute. """</tt> </tt>
<a name="L375"></a><tt class="py-lineno">375</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-228" class="py-name"><a title="xmpp.simplexml.Node.setAttr" class="py-name" href="#" onclick="return doclink('link-228', 'setAttr', 'link-222');">setAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'id'</tt><tt class="py-op">,</tt> <tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
</div><a name="Protocol.getError"></a><div id="Protocol.getError-def"><a name="L376"></a><tt class="py-lineno">376</tt> <a class="py-toggle" href="#" id="Protocol.getError-toggle" onclick="return toggle('Protocol.getError');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#getError">getError</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.getError-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.getError-expanded"><a name="L377"></a><tt class="py-lineno">377</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the error-condition (if present) or the textual description of the error (otherwise). """</tt> </tt>
<a name="L378"></a><tt class="py-lineno">378</tt>  <tt class="py-line">        <tt class="py-name">errtag</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-229" class="py-name" targets="Method xmpp.simplexml.Node.getTag()=xmpp.simplexml.Node-class.html#getTag"><a title="xmpp.simplexml.Node.getTag" class="py-name" href="#" onclick="return doclink('link-229', 'getTag', 'link-229');">getTag</a></tt><tt class="py-op">(</tt><tt class="py-string">'error'</tt><tt class="py-op">)</tt> </tt>
<a name="L379"></a><tt class="py-lineno">379</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">errtag</tt><tt class="py-op">:</tt> </tt>
<a name="L380"></a><tt class="py-lineno">380</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">tag</tt> <tt class="py-keyword">in</tt> <tt class="py-name">errtag</tt><tt class="py-op">.</tt><tt id="link-230" class="py-name" targets="Method xmpp.simplexml.Node.getChildren()=xmpp.simplexml.Node-class.html#getChildren"><a title="xmpp.simplexml.Node.getChildren" class="py-name" href="#" onclick="return doclink('link-230', 'getChildren', 'link-230');">getChildren</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L381"></a><tt class="py-lineno">381</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">tag</tt><tt class="py-op">.</tt><tt id="link-231" class="py-name" targets="Method xmpp.roster.Roster.getName()=xmpp.roster.Roster-class.html#getName,Method xmpp.simplexml.Node.getName()=xmpp.simplexml.Node-class.html#getName"><a title="xmpp.roster.Roster.getName
xmpp.simplexml.Node.getName" class="py-name" href="#" onclick="return doclink('link-231', 'getName', 'link-231');">getName</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">&lt;&gt;</tt><tt class="py-string">'text'</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">tag</tt><tt class="py-op">.</tt><tt id="link-232" class="py-name"><a title="xmpp.roster.Roster.getName
xmpp.simplexml.Node.getName" class="py-name" href="#" onclick="return doclink('link-232', 'getName', 'link-231');">getName</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L382"></a><tt class="py-lineno">382</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">errtag</tt><tt class="py-op">.</tt><tt id="link-233" class="py-name" targets="Method xmpp.simplexml.Node.getData()=xmpp.simplexml.Node-class.html#getData"><a title="xmpp.simplexml.Node.getData" class="py-name" href="#" onclick="return doclink('link-233', 'getData', 'link-233');">getData</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="Protocol.getErrorCode"></a><div id="Protocol.getErrorCode-def"><a name="L383"></a><tt class="py-lineno">383</tt> <a class="py-toggle" href="#" id="Protocol.getErrorCode-toggle" onclick="return toggle('Protocol.getErrorCode');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#getErrorCode">getErrorCode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.getErrorCode-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.getErrorCode-expanded"><a name="L384"></a><tt class="py-lineno">384</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the error code. Obsolette. """</tt> </tt>
<a name="L385"></a><tt class="py-lineno">385</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-234" class="py-name" targets="Method xmpp.simplexml.Node.getTagAttr()=xmpp.simplexml.Node-class.html#getTagAttr"><a title="xmpp.simplexml.Node.getTagAttr" class="py-name" href="#" onclick="return doclink('link-234', 'getTagAttr', 'link-234');">getTagAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'error'</tt><tt class="py-op">,</tt><tt class="py-string">'code'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Protocol.setError"></a><div id="Protocol.setError-def"><a name="L386"></a><tt class="py-lineno">386</tt> <a class="py-toggle" href="#" id="Protocol.setError-toggle" onclick="return toggle('Protocol.setError');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#setError">setError</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">error</tt><tt class="py-op">,</tt><tt class="py-param">code</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.setError-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.setError-expanded"><a name="L387"></a><tt class="py-lineno">387</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the error code. Obsolette. Use error-conditions instead. """</tt> </tt>
<a name="L388"></a><tt class="py-lineno">388</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">code</tt><tt class="py-op">:</tt> </tt>
<a name="L389"></a><tt class="py-lineno">389</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">code</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt id="link-235" class="py-name"><a title="xmpp.protocol._errorcodes" class="py-name" href="#" onclick="return doclink('link-235', '_errorcodes', 'link-160');">_errorcodes</a></tt><tt class="py-op">.</tt><tt id="link-236" class="py-name" targets="Method xmpp.roster.Roster.keys()=xmpp.roster.Roster-class.html#keys"><a title="xmpp.roster.Roster.keys" class="py-name" href="#" onclick="return doclink('link-236', 'keys', 'link-236');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt id="link-237" class="py-name" targets="Class xmpp.transports.error=xmpp.transports.error-class.html"><a title="xmpp.transports.error" class="py-name" href="#" onclick="return doclink('link-237', 'error', 'link-237');">error</a></tt><tt class="py-op">=</tt><tt id="link-238" class="py-name" targets="Class xmpp.protocol.ErrorNode=xmpp.protocol.ErrorNode-class.html"><a title="xmpp.protocol.ErrorNode" class="py-name" href="#" onclick="return doclink('link-238', 'ErrorNode', 'link-238');">ErrorNode</a></tt><tt class="py-op">(</tt><tt id="link-239" class="py-name"><a title="xmpp.protocol._errorcodes" class="py-name" href="#" onclick="return doclink('link-239', '_errorcodes', 'link-160');">_errorcodes</a></tt><tt class="py-op">[</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">code</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">text</tt><tt class="py-op">=</tt><tt id="link-240" class="py-name"><a title="xmpp.transports.error" class="py-name" href="#" onclick="return doclink('link-240', 'error', 'link-237');">error</a></tt><tt class="py-op">)</tt> </tt>
<a name="L390"></a><tt class="py-lineno">390</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt id="link-241" class="py-name"><a title="xmpp.transports.error" class="py-name" href="#" onclick="return doclink('link-241', 'error', 'link-237');">error</a></tt><tt class="py-op">=</tt><tt id="link-242" class="py-name"><a title="xmpp.protocol.ErrorNode" class="py-name" href="#" onclick="return doclink('link-242', 'ErrorNode', 'link-238');">ErrorNode</a></tt><tt class="py-op">(</tt><tt id="link-243" class="py-name" targets="Variable xmpp.ERR_UNDEFINED_CONDITION=xmpp-module.html#ERR_UNDEFINED_CONDITION,Variable xmpp.auth.ERR_UNDEFINED_CONDITION=xmpp.auth-module.html#ERR_UNDEFINED_CONDITION,Variable xmpp.browser.ERR_UNDEFINED_CONDITION=xmpp.browser-module.html#ERR_UNDEFINED_CONDITION,Variable xmpp.commands.ERR_UNDEFINED_CONDITION=xmpp.commands-module.html#ERR_UNDEFINED_CONDITION,Variable xmpp.dispatcher.ERR_UNDEFINED_CONDITION=xmpp.dispatcher-module.html#ERR_UNDEFINED_CONDITION,Variable xmpp.features.ERR_UNDEFINED_CONDITION=xmpp.features-module.html#ERR_UNDEFINED_CONDITION,Variable xmpp.filetransfer.ERR_UNDEFINED_CONDITION=xmpp.filetransfer-module.html#ERR_UNDEFINED_CONDITION,Variable xmpp.protocol.ERR_UNDEFINED_CONDITION=xmpp.protocol-module.html#ERR_UNDEFINED_CONDITION,Variable xmpp.roster.ERR_UNDEFINED_CONDITION=xmpp.roster-module.html#ERR_UNDEFINED_CONDITION,Variable xmpp.session.ERR_UNDEFINED_CONDITION=xmpp.session-module.html#ERR_UNDEFINED_CONDITION,Variable xmpp.transports.ERR_UNDEFINED_CONDITION=xmpp.transports-module.html#ERR_UNDEFINED_CONDITION"><a title="xmpp.ERR_UNDEFINED_CONDITION
xmpp.auth.ERR_UNDEFINED_CONDITION
xmpp.browser.ERR_UNDEFINED_CONDITION
xmpp.commands.ERR_UNDEFINED_CONDITION
xmpp.dispatcher.ERR_UNDEFINED_CONDITION
xmpp.features.ERR_UNDEFINED_CONDITION
xmpp.filetransfer.ERR_UNDEFINED_CONDITION
xmpp.protocol.ERR_UNDEFINED_CONDITION
xmpp.roster.ERR_UNDEFINED_CONDITION
xmpp.session.ERR_UNDEFINED_CONDITION
xmpp.transports.ERR_UNDEFINED_CONDITION" class="py-name" href="#" onclick="return doclink('link-243', 'ERR_UNDEFINED_CONDITION', 'link-243');">ERR_UNDEFINED_CONDITION</a></tt><tt class="py-op">,</tt><tt class="py-name">code</tt><tt class="py-op">=</tt><tt class="py-name">code</tt><tt class="py-op">,</tt><tt class="py-name">typ</tt><tt class="py-op">=</tt><tt class="py-string">'cancel'</tt><tt class="py-op">,</tt><tt class="py-name">text</tt><tt class="py-op">=</tt><tt id="link-244" class="py-name"><a title="xmpp.transports.error" class="py-name" href="#" onclick="return doclink('link-244', 'error', 'link-237');">error</a></tt><tt class="py-op">)</tt> </tt>
<a name="L391"></a><tt class="py-lineno">391</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt id="link-245" class="py-name"><a title="xmpp.transports.error" class="py-name" href="#" onclick="return doclink('link-245', 'error', 'link-237');">error</a></tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-string">''</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-string">u''</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> <tt id="link-246" class="py-name"><a title="xmpp.transports.error" class="py-name" href="#" onclick="return doclink('link-246', 'error', 'link-237');">error</a></tt><tt class="py-op">=</tt><tt id="link-247" class="py-name"><a title="xmpp.protocol.ErrorNode" class="py-name" href="#" onclick="return doclink('link-247', 'ErrorNode', 'link-238');">ErrorNode</a></tt><tt class="py-op">(</tt><tt id="link-248" class="py-name"><a title="xmpp.transports.error" class="py-name" href="#" onclick="return doclink('link-248', 'error', 'link-237');">error</a></tt><tt class="py-op">)</tt> </tt>
<a name="L392"></a><tt class="py-lineno">392</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-249" class="py-name" targets="Method xmpp.protocol.DataField.setType()=xmpp.protocol.DataField-class.html#setType,Method xmpp.protocol.DataForm.setType()=xmpp.protocol.DataForm-class.html#setType,Method xmpp.protocol.Protocol.setType()=xmpp.protocol.Protocol-class.html#setType"><a title="xmpp.protocol.DataField.setType
xmpp.protocol.DataForm.setType
xmpp.protocol.Protocol.setType" class="py-name" href="#" onclick="return doclink('link-249', 'setType', 'link-249');">setType</a></tt><tt class="py-op">(</tt><tt class="py-string">'error'</tt><tt class="py-op">)</tt> </tt>
<a name="L393"></a><tt class="py-lineno">393</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-250" class="py-name" targets="Method xmpp.simplexml.Node.addChild()=xmpp.simplexml.Node-class.html#addChild"><a title="xmpp.simplexml.Node.addChild" class="py-name" href="#" onclick="return doclink('link-250', 'addChild', 'link-250');">addChild</a></tt><tt class="py-op">(</tt><tt class="py-name">node</tt><tt class="py-op">=</tt><tt id="link-251" class="py-name"><a title="xmpp.transports.error" class="py-name" href="#" onclick="return doclink('link-251', 'error', 'link-237');">error</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="Protocol.setTimestamp"></a><div id="Protocol.setTimestamp-def"><a name="L394"></a><tt class="py-lineno">394</tt> <a class="py-toggle" href="#" id="Protocol.setTimestamp-toggle" onclick="return toggle('Protocol.setTimestamp');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#setTimestamp">setTimestamp</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.setTimestamp-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.setTimestamp-expanded"><a name="L395"></a><tt class="py-lineno">395</tt>  <tt class="py-line">        <tt class="py-docstring">"""Set the timestamp. timestamp should be the yyyymmddThhmmss string."""</tt> </tt>
<a name="L396"></a><tt class="py-lineno">396</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">val</tt><tt class="py-op">:</tt> <tt class="py-name">val</tt><tt class="py-op">=</tt><tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">strftime</tt><tt class="py-op">(</tt><tt class="py-string">'%Y%m%dT%H:%M:%S'</tt><tt class="py-op">,</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">gmtime</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L397"></a><tt class="py-lineno">397</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">timestamp</tt><tt class="py-op">=</tt><tt class="py-name">val</tt> </tt>
<a name="L398"></a><tt class="py-lineno">398</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-252" class="py-name" targets="Method xmpp.simplexml.Node.setTag()=xmpp.simplexml.Node-class.html#setTag"><a title="xmpp.simplexml.Node.setTag" class="py-name" href="#" onclick="return doclink('link-252', 'setTag', 'link-252');">setTag</a></tt><tt class="py-op">(</tt><tt class="py-string">'x'</tt><tt class="py-op">,</tt><tt class="py-op">{</tt><tt class="py-string">'stamp'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">timestamp</tt><tt class="py-op">}</tt><tt class="py-op">,</tt><tt class="py-name">namespace</tt><tt class="py-op">=</tt><tt id="link-253" class="py-name"><a title="xmpp.protocol.NS_DELAY" class="py-name" href="#" onclick="return doclink('link-253', 'NS_DELAY', 'link-85');">NS_DELAY</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="Protocol.getProperties"></a><div id="Protocol.getProperties-def"><a name="L399"></a><tt class="py-lineno">399</tt> <a class="py-toggle" href="#" id="Protocol.getProperties-toggle" onclick="return toggle('Protocol.getProperties');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#getProperties">getProperties</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.getProperties-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.getProperties-expanded"><a name="L400"></a><tt class="py-lineno">400</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the list of namespaces to which belongs the direct childs of element"""</tt> </tt>
<a name="L401"></a><tt class="py-lineno">401</tt>  <tt class="py-line">        <tt class="py-name">props</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L402"></a><tt class="py-lineno">402</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">child</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-254" class="py-name"><a title="xmpp.simplexml.Node.getChildren" class="py-name" href="#" onclick="return doclink('link-254', 'getChildren', 'link-230');">getChildren</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L403"></a><tt class="py-lineno">403</tt>  <tt class="py-line">            <tt class="py-name">prop</tt><tt class="py-op">=</tt><tt class="py-name">child</tt><tt class="py-op">.</tt><tt id="link-255" class="py-name" targets="Method xmpp.simplexml.Node.getNamespace()=xmpp.simplexml.Node-class.html#getNamespace"><a title="xmpp.simplexml.Node.getNamespace" class="py-name" href="#" onclick="return doclink('link-255', 'getNamespace', 'link-255');">getNamespace</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L404"></a><tt class="py-lineno">404</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">prop</tt> <tt class="py-keyword">not</tt> <tt class="py-keyword">in</tt> <tt class="py-name">props</tt><tt class="py-op">:</tt> <tt class="py-name">props</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">prop</tt><tt class="py-op">)</tt> </tt>
<a name="L405"></a><tt class="py-lineno">405</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">props</tt> </tt>
</div><a name="Protocol.__setitem__"></a><div id="Protocol.__setitem__-def"><a name="L406"></a><tt class="py-lineno">406</tt> <a class="py-toggle" href="#" id="Protocol.__setitem__-toggle" onclick="return toggle('Protocol.__setitem__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Protocol-class.html#__setitem__">__setitem__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">item</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Protocol.__setitem__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Protocol.__setitem__-expanded"><a name="L407"></a><tt class="py-lineno">407</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the item 'item' to the value 'val'."""</tt> </tt>
<a name="L408"></a><tt class="py-lineno">408</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">item</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-string">'to'</tt><tt class="py-op">,</tt><tt class="py-string">'from'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> <tt class="py-name">val</tt><tt class="py-op">=</tt><tt id="link-256" class="py-name"><a title="xmpp.protocol.JID" class="py-name" href="#" onclick="return doclink('link-256', 'JID', 'link-199');">JID</a></tt><tt class="py-op">(</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
<a name="L409"></a><tt class="py-lineno">409</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-257" class="py-name"><a title="xmpp.simplexml.Node.setAttr" class="py-name" href="#" onclick="return doclink('link-257', 'setAttr', 'link-222');">setAttr</a></tt><tt class="py-op">(</tt><tt class="py-name">item</tt><tt class="py-op">,</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L410"></a><tt class="py-lineno">410</tt>  <tt class="py-line"> </tt>
<a name="Message"></a><div id="Message-def"><a name="L411"></a><tt class="py-lineno">411</tt> <a class="py-toggle" href="#" id="Message-toggle" onclick="return toggle('Message');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.Message-class.html">Message</a><tt class="py-op">(</tt><tt class="py-base-class">Protocol</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Message-expanded"><a name="L412"></a><tt class="py-lineno">412</tt>  <tt class="py-line">    <tt class="py-docstring">""" XMPP Message stanza - "push" mechanism."""</tt> </tt>
<a name="Message.__init__"></a><div id="Message.__init__-def"><a name="L413"></a><tt class="py-lineno">413</tt> <a class="py-toggle" href="#" id="Message.__init__-toggle" onclick="return toggle('Message.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Message-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">to</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">body</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">typ</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">subject</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">attrs</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">,</tt> <tt class="py-param">frm</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">payload</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-param">timestamp</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">xmlns</tt><tt class="py-op">=</tt><tt id="link-258" class="py-name"><a title="xmpp.protocol.NS_CLIENT" class="py-name" href="#" onclick="return doclink('link-258', 'NS_CLIENT', 'link-79');">NS_CLIENT</a></tt><tt class="py-op">,</tt> <tt class="py-param">node</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Message.__init__-expanded"><a name="L414"></a><tt class="py-lineno">414</tt>  <tt class="py-line">        <tt class="py-docstring">""" Create message object. You can specify recipient, text of message, type of message</tt> </tt>
<a name="L415"></a><tt class="py-lineno">415</tt>  <tt class="py-line"><tt class="py-docstring">            any additional attributes, sender of the message, any additional payload (f.e. jabber:x:delay element) and namespace in one go.</tt> </tt>
<a name="L416"></a><tt class="py-lineno">416</tt>  <tt class="py-line"><tt class="py-docstring">            Alternatively you can pass in the other XML object as the 'node' parameted to replicate it as message. """</tt> </tt>
<a name="L417"></a><tt class="py-lineno">417</tt>  <tt class="py-line">        <tt id="link-259" class="py-name" targets="Class xmpp.protocol.Protocol=xmpp.protocol.Protocol-class.html"><a title="xmpp.protocol.Protocol" class="py-name" href="#" onclick="return doclink('link-259', 'Protocol', 'link-259');">Protocol</a></tt><tt class="py-op">.</tt><tt id="link-260" class="py-name"><a title="xmpp.auth.Bind.__init__
xmpp.auth.ComponentBind.__init__
xmpp.auth.NonSASL.__init__
xmpp.auth.SASL.__init__
xmpp.browser.Browser.__init__
xmpp.client.CommonClient.__init__
xmpp.client.Component.__init__
xmpp.client.PlugIn.__init__
xmpp.commands.Command_Handler_Prototype.__init__
xmpp.commands.Commands.__init__
xmpp.commands.TestCommand.__init__
xmpp.debug.Debug.__init__
xmpp.debug.NoDebug.__init__
xmpp.dispatcher.Dispatcher.__init__
xmpp.filetransfer.IBB.__init__
xmpp.protocol.DataField.__init__
xmpp.protocol.DataForm.__init__
xmpp.protocol.Error.__init__
xmpp.protocol.ErrorNode.__init__
xmpp.protocol.Iq.__init__
xmpp.protocol.JID.__init__
xmpp.protocol.Message.__init__
xmpp.protocol.Presence.__init__
xmpp.protocol.Protocol.__init__
xmpp.roster.Roster.__init__
xmpp.session.Session.__init__
xmpp.simplexml.Node.__init__
xmpp.simplexml.NodeBuilder.__init__
xmpp.simplexml.T.__init__
xmpp.transports.HTTPPROXYsocket.__init__
xmpp.transports.TCPsocket.__init__
xmpp.transports.error.__init__" class="py-name" href="#" onclick="return doclink('link-260', '__init__', 'link-208');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">'message'</tt><tt class="py-op">,</tt> <tt class="py-name">to</tt><tt class="py-op">=</tt><tt class="py-name">to</tt><tt class="py-op">,</tt> <tt class="py-name">typ</tt><tt class="py-op">=</tt><tt class="py-name">typ</tt><tt class="py-op">,</tt> <tt class="py-name">attrs</tt><tt class="py-op">=</tt><tt class="py-name">attrs</tt><tt class="py-op">,</tt> <tt class="py-name">frm</tt><tt class="py-op">=</tt><tt class="py-name">frm</tt><tt class="py-op">,</tt> <tt class="py-name">payload</tt><tt class="py-op">=</tt><tt class="py-name">payload</tt><tt class="py-op">,</tt> <tt class="py-name">timestamp</tt><tt class="py-op">=</tt><tt class="py-name">timestamp</tt><tt class="py-op">,</tt> <tt class="py-name">xmlns</tt><tt class="py-op">=</tt><tt class="py-name">xmlns</tt><tt class="py-op">,</tt> <tt class="py-name">node</tt><tt class="py-op">=</tt><tt class="py-name">node</tt><tt class="py-op">)</tt> </tt>
<a name="L418"></a><tt class="py-lineno">418</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">body</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-261" class="py-name" targets="Method xmpp.protocol.Message.setBody()=xmpp.protocol.Message-class.html#setBody"><a title="xmpp.protocol.Message.setBody" class="py-name" href="#" onclick="return doclink('link-261', 'setBody', 'link-261');">setBody</a></tt><tt class="py-op">(</tt><tt class="py-name">body</tt><tt class="py-op">)</tt> </tt>
<a name="L419"></a><tt class="py-lineno">419</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">subject</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-262" class="py-name" targets="Method xmpp.protocol.Message.setSubject()=xmpp.protocol.Message-class.html#setSubject"><a title="xmpp.protocol.Message.setSubject" class="py-name" href="#" onclick="return doclink('link-262', 'setSubject', 'link-262');">setSubject</a></tt><tt class="py-op">(</tt><tt class="py-name">subject</tt><tt class="py-op">)</tt> </tt>
</div><a name="Message.getBody"></a><div id="Message.getBody-def"><a name="L420"></a><tt class="py-lineno">420</tt> <a class="py-toggle" href="#" id="Message.getBody-toggle" onclick="return toggle('Message.getBody');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Message-class.html#getBody">getBody</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.getBody-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Message.getBody-expanded"><a name="L421"></a><tt class="py-lineno">421</tt>  <tt class="py-line">        <tt class="py-docstring">""" Returns text of the message. """</tt> </tt>
<a name="L422"></a><tt class="py-lineno">422</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-263" class="py-name" targets="Method xmpp.simplexml.Node.getTagData()=xmpp.simplexml.Node-class.html#getTagData"><a title="xmpp.simplexml.Node.getTagData" class="py-name" href="#" onclick="return doclink('link-263', 'getTagData', 'link-263');">getTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'body'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Message.getSubject"></a><div id="Message.getSubject-def"><a name="L423"></a><tt class="py-lineno">423</tt> <a class="py-toggle" href="#" id="Message.getSubject-toggle" onclick="return toggle('Message.getSubject');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Message-class.html#getSubject">getSubject</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.getSubject-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Message.getSubject-expanded"><a name="L424"></a><tt class="py-lineno">424</tt>  <tt class="py-line">        <tt class="py-docstring">""" Returns subject of the message. """</tt> </tt>
<a name="L425"></a><tt class="py-lineno">425</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-264" class="py-name"><a title="xmpp.simplexml.Node.getTagData" class="py-name" href="#" onclick="return doclink('link-264', 'getTagData', 'link-263');">getTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'subject'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Message.getThread"></a><div id="Message.getThread-def"><a name="L426"></a><tt class="py-lineno">426</tt> <a class="py-toggle" href="#" id="Message.getThread-toggle" onclick="return toggle('Message.getThread');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Message-class.html#getThread">getThread</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.getThread-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Message.getThread-expanded"><a name="L427"></a><tt class="py-lineno">427</tt>  <tt class="py-line">        <tt class="py-docstring">""" Returns thread of the message. """</tt> </tt>
<a name="L428"></a><tt class="py-lineno">428</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-265" class="py-name"><a title="xmpp.simplexml.Node.getTagData" class="py-name" href="#" onclick="return doclink('link-265', 'getTagData', 'link-263');">getTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'thread'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Message.setBody"></a><div id="Message.setBody-def"><a name="L429"></a><tt class="py-lineno">429</tt> <a class="py-toggle" href="#" id="Message.setBody-toggle" onclick="return toggle('Message.setBody');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Message-class.html#setBody">setBody</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.setBody-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Message.setBody-expanded"><a name="L430"></a><tt class="py-lineno">430</tt>  <tt class="py-line">        <tt class="py-docstring">""" Sets the text of the message. """</tt> </tt>
<a name="L431"></a><tt class="py-lineno">431</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-266" class="py-name" targets="Method xmpp.simplexml.Node.setTagData()=xmpp.simplexml.Node-class.html#setTagData"><a title="xmpp.simplexml.Node.setTagData" class="py-name" href="#" onclick="return doclink('link-266', 'setTagData', 'link-266');">setTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'body'</tt><tt class="py-op">,</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
</div><a name="Message.setSubject"></a><div id="Message.setSubject-def"><a name="L432"></a><tt class="py-lineno">432</tt> <a class="py-toggle" href="#" id="Message.setSubject-toggle" onclick="return toggle('Message.setSubject');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Message-class.html#setSubject">setSubject</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.setSubject-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Message.setSubject-expanded"><a name="L433"></a><tt class="py-lineno">433</tt>  <tt class="py-line">        <tt class="py-docstring">""" Sets the subject of the message. """</tt> </tt>
<a name="L434"></a><tt class="py-lineno">434</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-267" class="py-name"><a title="xmpp.simplexml.Node.setTagData" class="py-name" href="#" onclick="return doclink('link-267', 'setTagData', 'link-266');">setTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'subject'</tt><tt class="py-op">,</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
</div><a name="Message.setThread"></a><div id="Message.setThread-def"><a name="L435"></a><tt class="py-lineno">435</tt> <a class="py-toggle" href="#" id="Message.setThread-toggle" onclick="return toggle('Message.setThread');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Message-class.html#setThread">setThread</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.setThread-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Message.setThread-expanded"><a name="L436"></a><tt class="py-lineno">436</tt>  <tt class="py-line">        <tt class="py-docstring">""" Sets the thread of the message. """</tt> </tt>
<a name="L437"></a><tt class="py-lineno">437</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-268" class="py-name"><a title="xmpp.simplexml.Node.setTagData" class="py-name" href="#" onclick="return doclink('link-268', 'setTagData', 'link-266');">setTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'thread'</tt><tt class="py-op">,</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
</div><a name="Message.buildReply"></a><div id="Message.buildReply-def"><a name="L438"></a><tt class="py-lineno">438</tt> <a class="py-toggle" href="#" id="Message.buildReply-toggle" onclick="return toggle('Message.buildReply');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Message-class.html#buildReply">buildReply</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">text</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.buildReply-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Message.buildReply-expanded"><a name="L439"></a><tt class="py-lineno">439</tt>  <tt class="py-line">        <tt class="py-docstring">""" Builds and returns another message object with specified text.</tt> </tt>
<a name="L440"></a><tt class="py-lineno">440</tt>  <tt class="py-line"><tt class="py-docstring">            The to, from and thread properties of new message are pre-set as reply to this message. """</tt> </tt>
<a name="L441"></a><tt class="py-lineno">441</tt>  <tt class="py-line">        <tt class="py-name">m</tt><tt class="py-op">=</tt><tt id="link-269" class="py-name" targets="Class xmpp.protocol.Message=xmpp.protocol.Message-class.html"><a title="xmpp.protocol.Message" class="py-name" href="#" onclick="return doclink('link-269', 'Message', 'link-269');">Message</a></tt><tt class="py-op">(</tt><tt class="py-name">to</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-270" class="py-name" targets="Method xmpp.protocol.Protocol.getFrom()=xmpp.protocol.Protocol-class.html#getFrom"><a title="xmpp.protocol.Protocol.getFrom" class="py-name" href="#" onclick="return doclink('link-270', 'getFrom', 'link-270');">getFrom</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">frm</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-271" class="py-name" targets="Method xmpp.protocol.Protocol.getTo()=xmpp.protocol.Protocol-class.html#getTo"><a title="xmpp.protocol.Protocol.getTo" class="py-name" href="#" onclick="return doclink('link-271', 'getTo', 'link-271');">getTo</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">body</tt><tt class="py-op">=</tt><tt class="py-name">text</tt><tt class="py-op">)</tt> </tt>
<a name="L442"></a><tt class="py-lineno">442</tt>  <tt class="py-line">        <tt class="py-name">th</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-272" class="py-name" targets="Method xmpp.protocol.Message.getThread()=xmpp.protocol.Message-class.html#getThread"><a title="xmpp.protocol.Message.getThread" class="py-name" href="#" onclick="return doclink('link-272', 'getThread', 'link-272');">getThread</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L443"></a><tt class="py-lineno">443</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">th</tt><tt class="py-op">:</tt> <tt class="py-name">m</tt><tt class="py-op">.</tt><tt id="link-273" class="py-name" targets="Method xmpp.protocol.Message.setThread()=xmpp.protocol.Message-class.html#setThread"><a title="xmpp.protocol.Message.setThread" class="py-name" href="#" onclick="return doclink('link-273', 'setThread', 'link-273');">setThread</a></tt><tt class="py-op">(</tt><tt class="py-name">th</tt><tt class="py-op">)</tt> </tt>
<a name="L444"></a><tt class="py-lineno">444</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">m</tt> </tt>
</div></div><a name="L445"></a><tt class="py-lineno">445</tt>  <tt class="py-line"> </tt>
<a name="Presence"></a><div id="Presence-def"><a name="L446"></a><tt class="py-lineno">446</tt> <a class="py-toggle" href="#" id="Presence-toggle" onclick="return toggle('Presence');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html">Presence</a><tt class="py-op">(</tt><tt class="py-base-class">Protocol</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Presence-expanded"><a name="L447"></a><tt class="py-lineno">447</tt>  <tt class="py-line">    <tt class="py-docstring">""" XMPP Presence object."""</tt> </tt>
<a name="Presence.__init__"></a><div id="Presence.__init__-def"><a name="L448"></a><tt class="py-lineno">448</tt> <a class="py-toggle" href="#" id="Presence.__init__-toggle" onclick="return toggle('Presence.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">to</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">typ</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">priority</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">show</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">status</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">attrs</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">,</tt> <tt class="py-param">frm</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">timestamp</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">payload</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-param">xmlns</tt><tt class="py-op">=</tt><tt id="link-274" class="py-name"><a title="xmpp.protocol.NS_CLIENT" class="py-name" href="#" onclick="return doclink('link-274', 'NS_CLIENT', 'link-79');">NS_CLIENT</a></tt><tt class="py-op">,</tt> <tt class="py-param">node</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence.__init__-expanded"><a name="L449"></a><tt class="py-lineno">449</tt>  <tt class="py-line">        <tt class="py-docstring">""" Create presence object. You can specify recipient, type of message, priority, show and status values</tt> </tt>
<a name="L450"></a><tt class="py-lineno">450</tt>  <tt class="py-line"><tt class="py-docstring">            any additional attributes, sender of the presence, timestamp, any additional payload (f.e. jabber:x:delay element) and namespace in one go.</tt> </tt>
<a name="L451"></a><tt class="py-lineno">451</tt>  <tt class="py-line"><tt class="py-docstring">            Alternatively you can pass in the other XML object as the 'node' parameted to replicate it as presence. """</tt> </tt>
<a name="L452"></a><tt class="py-lineno">452</tt>  <tt class="py-line">        <tt id="link-275" class="py-name"><a title="xmpp.protocol.Protocol" class="py-name" href="#" onclick="return doclink('link-275', 'Protocol', 'link-259');">Protocol</a></tt><tt class="py-op">.</tt><tt id="link-276" class="py-name"><a title="xmpp.auth.Bind.__init__
xmpp.auth.ComponentBind.__init__
xmpp.auth.NonSASL.__init__
xmpp.auth.SASL.__init__
xmpp.browser.Browser.__init__
xmpp.client.CommonClient.__init__
xmpp.client.Component.__init__
xmpp.client.PlugIn.__init__
xmpp.commands.Command_Handler_Prototype.__init__
xmpp.commands.Commands.__init__
xmpp.commands.TestCommand.__init__
xmpp.debug.Debug.__init__
xmpp.debug.NoDebug.__init__
xmpp.dispatcher.Dispatcher.__init__
xmpp.filetransfer.IBB.__init__
xmpp.protocol.DataField.__init__
xmpp.protocol.DataForm.__init__
xmpp.protocol.Error.__init__
xmpp.protocol.ErrorNode.__init__
xmpp.protocol.Iq.__init__
xmpp.protocol.JID.__init__
xmpp.protocol.Message.__init__
xmpp.protocol.Presence.__init__
xmpp.protocol.Protocol.__init__
xmpp.roster.Roster.__init__
xmpp.session.Session.__init__
xmpp.simplexml.Node.__init__
xmpp.simplexml.NodeBuilder.__init__
xmpp.simplexml.T.__init__
xmpp.transports.HTTPPROXYsocket.__init__
xmpp.transports.TCPsocket.__init__
xmpp.transports.error.__init__" class="py-name" href="#" onclick="return doclink('link-276', '__init__', 'link-208');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">'presence'</tt><tt class="py-op">,</tt> <tt class="py-name">to</tt><tt class="py-op">=</tt><tt class="py-name">to</tt><tt class="py-op">,</tt> <tt class="py-name">typ</tt><tt class="py-op">=</tt><tt class="py-name">typ</tt><tt class="py-op">,</tt> <tt class="py-name">attrs</tt><tt class="py-op">=</tt><tt class="py-name">attrs</tt><tt class="py-op">,</tt> <tt class="py-name">frm</tt><tt class="py-op">=</tt><tt class="py-name">frm</tt><tt class="py-op">,</tt> <tt class="py-name">payload</tt><tt class="py-op">=</tt><tt class="py-name">payload</tt><tt class="py-op">,</tt> <tt class="py-name">timestamp</tt><tt class="py-op">=</tt><tt class="py-name">timestamp</tt><tt class="py-op">,</tt> <tt class="py-name">xmlns</tt><tt class="py-op">=</tt><tt class="py-name">xmlns</tt><tt class="py-op">,</tt> <tt class="py-name">node</tt><tt class="py-op">=</tt><tt class="py-name">node</tt><tt class="py-op">)</tt> </tt>
<a name="L453"></a><tt class="py-lineno">453</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">priority</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-277" class="py-name" targets="Method xmpp.protocol.Presence.setPriority()=xmpp.protocol.Presence-class.html#setPriority"><a title="xmpp.protocol.Presence.setPriority" class="py-name" href="#" onclick="return doclink('link-277', 'setPriority', 'link-277');">setPriority</a></tt><tt class="py-op">(</tt><tt class="py-name">priority</tt><tt class="py-op">)</tt> </tt>
<a name="L454"></a><tt class="py-lineno">454</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-278" class="py-name" targets="Method xmpp.debug.Debug.show()=xmpp.debug.Debug-class.html#show,Method xmpp.debug.NoDebug.show()=xmpp.debug.NoDebug-class.html#show"><a title="xmpp.debug.Debug.show
xmpp.debug.NoDebug.show" class="py-name" href="#" onclick="return doclink('link-278', 'show', 'link-278');">show</a></tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-279" class="py-name" targets="Method xmpp.protocol.Presence.setShow()=xmpp.protocol.Presence-class.html#setShow"><a title="xmpp.protocol.Presence.setShow" class="py-name" href="#" onclick="return doclink('link-279', 'setShow', 'link-279');">setShow</a></tt><tt class="py-op">(</tt><tt id="link-280" class="py-name"><a title="xmpp.debug.Debug.show
xmpp.debug.NoDebug.show" class="py-name" href="#" onclick="return doclink('link-280', 'show', 'link-278');">show</a></tt><tt class="py-op">)</tt> </tt>
<a name="L455"></a><tt class="py-lineno">455</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">status</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-281" class="py-name" targets="Method xmpp.protocol.Presence.setStatus()=xmpp.protocol.Presence-class.html#setStatus"><a title="xmpp.protocol.Presence.setStatus" class="py-name" href="#" onclick="return doclink('link-281', 'setStatus', 'link-281');">setStatus</a></tt><tt class="py-op">(</tt><tt class="py-name">status</tt><tt class="py-op">)</tt> </tt>
</div><a name="Presence.getPriority"></a><div id="Presence.getPriority-def"><a name="L456"></a><tt class="py-lineno">456</tt> <a class="py-toggle" href="#" id="Presence.getPriority-toggle" onclick="return toggle('Presence.getPriority');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#getPriority">getPriority</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence.getPriority-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence.getPriority-expanded"><a name="L457"></a><tt class="py-lineno">457</tt>  <tt class="py-line">        <tt class="py-docstring">""" Returns the priority of the message. """</tt> </tt>
<a name="L458"></a><tt class="py-lineno">458</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-282" class="py-name"><a title="xmpp.simplexml.Node.getTagData" class="py-name" href="#" onclick="return doclink('link-282', 'getTagData', 'link-263');">getTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'priority'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Presence.getShow"></a><div id="Presence.getShow-def"><a name="L459"></a><tt class="py-lineno">459</tt> <a class="py-toggle" href="#" id="Presence.getShow-toggle" onclick="return toggle('Presence.getShow');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#getShow">getShow</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence.getShow-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence.getShow-expanded"><a name="L460"></a><tt class="py-lineno">460</tt>  <tt class="py-line">        <tt class="py-docstring">""" Returns the show value of the message. """</tt> </tt>
<a name="L461"></a><tt class="py-lineno">461</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-283" class="py-name"><a title="xmpp.simplexml.Node.getTagData" class="py-name" href="#" onclick="return doclink('link-283', 'getTagData', 'link-263');">getTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'show'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Presence.getStatus"></a><div id="Presence.getStatus-def"><a name="L462"></a><tt class="py-lineno">462</tt> <a class="py-toggle" href="#" id="Presence.getStatus-toggle" onclick="return toggle('Presence.getStatus');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#getStatus">getStatus</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence.getStatus-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence.getStatus-expanded"><a name="L463"></a><tt class="py-lineno">463</tt>  <tt class="py-line">        <tt class="py-docstring">""" Returns the status string of the message. """</tt> </tt>
<a name="L464"></a><tt class="py-lineno">464</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-284" class="py-name"><a title="xmpp.simplexml.Node.getTagData" class="py-name" href="#" onclick="return doclink('link-284', 'getTagData', 'link-263');">getTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'status'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Presence.setPriority"></a><div id="Presence.setPriority-def"><a name="L465"></a><tt class="py-lineno">465</tt> <a class="py-toggle" href="#" id="Presence.setPriority-toggle" onclick="return toggle('Presence.setPriority');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#setPriority">setPriority</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence.setPriority-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence.setPriority-expanded"><a name="L466"></a><tt class="py-lineno">466</tt>  <tt class="py-line">        <tt class="py-docstring">""" Sets the priority of the message. """</tt> </tt>
<a name="L467"></a><tt class="py-lineno">467</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-285" class="py-name"><a title="xmpp.simplexml.Node.setTagData" class="py-name" href="#" onclick="return doclink('link-285', 'setTagData', 'link-266');">setTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'priority'</tt><tt class="py-op">,</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
</div><a name="Presence.setShow"></a><div id="Presence.setShow-def"><a name="L468"></a><tt class="py-lineno">468</tt> <a class="py-toggle" href="#" id="Presence.setShow-toggle" onclick="return toggle('Presence.setShow');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#setShow">setShow</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence.setShow-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence.setShow-expanded"><a name="L469"></a><tt class="py-lineno">469</tt>  <tt class="py-line">        <tt class="py-docstring">""" Sets the show value of the message. """</tt> </tt>
<a name="L470"></a><tt class="py-lineno">470</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-286" class="py-name"><a title="xmpp.simplexml.Node.setTagData" class="py-name" href="#" onclick="return doclink('link-286', 'setTagData', 'link-266');">setTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'show'</tt><tt class="py-op">,</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
</div><a name="Presence.setStatus"></a><div id="Presence.setStatus-def"><a name="L471"></a><tt class="py-lineno">471</tt> <a class="py-toggle" href="#" id="Presence.setStatus-toggle" onclick="return toggle('Presence.setStatus');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#setStatus">setStatus</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence.setStatus-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence.setStatus-expanded"><a name="L472"></a><tt class="py-lineno">472</tt>  <tt class="py-line">        <tt class="py-docstring">""" Sets the status string of the message. """</tt> </tt>
<a name="L473"></a><tt class="py-lineno">473</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-287" class="py-name"><a title="xmpp.simplexml.Node.setTagData" class="py-name" href="#" onclick="return doclink('link-287', 'setTagData', 'link-266');">setTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'status'</tt><tt class="py-op">,</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
</div><a name="L474"></a><tt class="py-lineno">474</tt>  <tt class="py-line"> </tt>
<a name="Presence._muc_getItemAttr"></a><div id="Presence._muc_getItemAttr-def"><a name="L475"></a><tt class="py-lineno">475</tt> <a class="py-toggle" href="#" id="Presence._muc_getItemAttr-toggle" onclick="return toggle('Presence._muc_getItemAttr');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#_muc_getItemAttr">_muc_getItemAttr</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">tag</tt><tt class="py-op">,</tt><tt class="py-param">attr</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence._muc_getItemAttr-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence._muc_getItemAttr-expanded"><a name="L476"></a><tt class="py-lineno">476</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">xtag</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-288" class="py-name"><a title="xmpp.simplexml.Node.getTags" class="py-name" href="#" onclick="return doclink('link-288', 'getTags', 'link-213');">getTags</a></tt><tt class="py-op">(</tt><tt class="py-string">'x'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L477"></a><tt class="py-lineno">477</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">child</tt> <tt class="py-keyword">in</tt> <tt class="py-name">xtag</tt><tt class="py-op">.</tt><tt id="link-289" class="py-name"><a title="xmpp.simplexml.Node.getTags" class="py-name" href="#" onclick="return doclink('link-289', 'getTags', 'link-213');">getTags</a></tt><tt class="py-op">(</tt><tt class="py-name">tag</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L478"></a><tt class="py-lineno">478</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">child</tt><tt class="py-op">.</tt><tt id="link-290" class="py-name"><a title="xmpp.simplexml.Node.getAttr" class="py-name" href="#" onclick="return doclink('link-290', 'getAttr', 'link-216');">getAttr</a></tt><tt class="py-op">(</tt><tt class="py-name">attr</tt><tt class="py-op">)</tt> </tt>
</div><a name="Presence._muc_getSubTagDataAttr"></a><div id="Presence._muc_getSubTagDataAttr-def"><a name="L479"></a><tt class="py-lineno">479</tt> <a class="py-toggle" href="#" id="Presence._muc_getSubTagDataAttr-toggle" onclick="return toggle('Presence._muc_getSubTagDataAttr');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#_muc_getSubTagDataAttr">_muc_getSubTagDataAttr</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">tag</tt><tt class="py-op">,</tt><tt class="py-param">attr</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence._muc_getSubTagDataAttr-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence._muc_getSubTagDataAttr-expanded"><a name="L480"></a><tt class="py-lineno">480</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">xtag</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-291" class="py-name"><a title="xmpp.simplexml.Node.getTags" class="py-name" href="#" onclick="return doclink('link-291', 'getTags', 'link-213');">getTags</a></tt><tt class="py-op">(</tt><tt class="py-string">'x'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L481"></a><tt class="py-lineno">481</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">child</tt> <tt class="py-keyword">in</tt> <tt class="py-name">xtag</tt><tt class="py-op">.</tt><tt id="link-292" class="py-name"><a title="xmpp.simplexml.Node.getTags" class="py-name" href="#" onclick="return doclink('link-292', 'getTags', 'link-213');">getTags</a></tt><tt class="py-op">(</tt><tt class="py-string">'item'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L482"></a><tt class="py-lineno">482</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">cchild</tt> <tt class="py-keyword">in</tt> <tt class="py-name">child</tt><tt class="py-op">.</tt><tt id="link-293" class="py-name"><a title="xmpp.simplexml.Node.getTags" class="py-name" href="#" onclick="return doclink('link-293', 'getTags', 'link-213');">getTags</a></tt><tt class="py-op">(</tt><tt class="py-name">tag</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L483"></a><tt class="py-lineno">483</tt>  <tt class="py-line">                    <tt class="py-keyword">return</tt> <tt class="py-name">cchild</tt><tt class="py-op">.</tt><tt id="link-294" class="py-name"><a title="xmpp.simplexml.Node.getData" class="py-name" href="#" onclick="return doclink('link-294', 'getData', 'link-233');">getData</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">cchild</tt><tt class="py-op">.</tt><tt id="link-295" class="py-name"><a title="xmpp.simplexml.Node.getAttr" class="py-name" href="#" onclick="return doclink('link-295', 'getAttr', 'link-216');">getAttr</a></tt><tt class="py-op">(</tt><tt class="py-name">attr</tt><tt class="py-op">)</tt> </tt>
<a name="L484"></a><tt class="py-lineno">484</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-name">None</tt> </tt>
</div><a name="Presence.getRole"></a><div id="Presence.getRole-def"><a name="L485"></a><tt class="py-lineno">485</tt> <a class="py-toggle" href="#" id="Presence.getRole-toggle" onclick="return toggle('Presence.getRole');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#getRole">getRole</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence.getRole-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence.getRole-expanded"><a name="L486"></a><tt class="py-lineno">486</tt>  <tt class="py-line">        <tt class="py-docstring">"""Returns the presence role (for groupchat)"""</tt> </tt>
<a name="L487"></a><tt class="py-lineno">487</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-296" class="py-name" targets="Method xmpp.protocol.Presence._muc_getItemAttr()=xmpp.protocol.Presence-class.html#_muc_getItemAttr"><a title="xmpp.protocol.Presence._muc_getItemAttr" class="py-name" href="#" onclick="return doclink('link-296', '_muc_getItemAttr', 'link-296');">_muc_getItemAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'item'</tt><tt class="py-op">,</tt><tt class="py-string">'role'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Presence.getAffiliation"></a><div id="Presence.getAffiliation-def"><a name="L488"></a><tt class="py-lineno">488</tt> <a class="py-toggle" href="#" id="Presence.getAffiliation-toggle" onclick="return toggle('Presence.getAffiliation');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#getAffiliation">getAffiliation</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence.getAffiliation-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence.getAffiliation-expanded"><a name="L489"></a><tt class="py-lineno">489</tt>  <tt class="py-line">        <tt class="py-docstring">"""Returns the presence affiliation (for groupchat)"""</tt> </tt>
<a name="L490"></a><tt class="py-lineno">490</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-297" class="py-name"><a title="xmpp.protocol.Presence._muc_getItemAttr" class="py-name" href="#" onclick="return doclink('link-297', '_muc_getItemAttr', 'link-296');">_muc_getItemAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'item'</tt><tt class="py-op">,</tt><tt class="py-string">'affiliation'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Presence.getNick"></a><div id="Presence.getNick-def"><a name="L491"></a><tt class="py-lineno">491</tt> <a class="py-toggle" href="#" id="Presence.getNick-toggle" onclick="return toggle('Presence.getNick');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#getNick">getNick</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence.getNick-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence.getNick-expanded"><a name="L492"></a><tt class="py-lineno">492</tt>  <tt class="py-line">        <tt class="py-docstring">"""Returns the nick value (for nick change in groupchat)"""</tt> </tt>
<a name="L493"></a><tt class="py-lineno">493</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-298" class="py-name"><a title="xmpp.protocol.Presence._muc_getItemAttr" class="py-name" href="#" onclick="return doclink('link-298', '_muc_getItemAttr', 'link-296');">_muc_getItemAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'item'</tt><tt class="py-op">,</tt><tt class="py-string">'nick'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Presence.getJid"></a><div id="Presence.getJid-def"><a name="L494"></a><tt class="py-lineno">494</tt> <a class="py-toggle" href="#" id="Presence.getJid-toggle" onclick="return toggle('Presence.getJid');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#getJid">getJid</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence.getJid-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence.getJid-expanded"><a name="L495"></a><tt class="py-lineno">495</tt>  <tt class="py-line">        <tt class="py-docstring">"""Returns the presence jid (for groupchat)"""</tt> </tt>
<a name="L496"></a><tt class="py-lineno">496</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-299" class="py-name"><a title="xmpp.protocol.Presence._muc_getItemAttr" class="py-name" href="#" onclick="return doclink('link-299', '_muc_getItemAttr', 'link-296');">_muc_getItemAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'item'</tt><tt class="py-op">,</tt><tt class="py-string">'jid'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Presence.getReason"></a><div id="Presence.getReason-def"><a name="L497"></a><tt class="py-lineno">497</tt> <a class="py-toggle" href="#" id="Presence.getReason-toggle" onclick="return toggle('Presence.getReason');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#getReason">getReason</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence.getReason-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence.getReason-expanded"><a name="L498"></a><tt class="py-lineno">498</tt>  <tt class="py-line">        <tt class="py-docstring">"""Returns the reason of the presence (for groupchat)"""</tt> </tt>
<a name="L499"></a><tt class="py-lineno">499</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-300" class="py-name" targets="Method xmpp.protocol.Presence._muc_getSubTagDataAttr()=xmpp.protocol.Presence-class.html#_muc_getSubTagDataAttr"><a title="xmpp.protocol.Presence._muc_getSubTagDataAttr" class="py-name" href="#" onclick="return doclink('link-300', '_muc_getSubTagDataAttr', 'link-300');">_muc_getSubTagDataAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'reason'</tt><tt class="py-op">,</tt><tt class="py-string">''</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
</div><a name="Presence.getActor"></a><div id="Presence.getActor-def"><a name="L500"></a><tt class="py-lineno">500</tt> <a class="py-toggle" href="#" id="Presence.getActor-toggle" onclick="return toggle('Presence.getActor');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#getActor">getActor</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence.getActor-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence.getActor-expanded"><a name="L501"></a><tt class="py-lineno">501</tt>  <tt class="py-line">        <tt class="py-docstring">"""Returns the reason of the presence (for groupchat)"""</tt> </tt>
<a name="L502"></a><tt class="py-lineno">502</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-301" class="py-name"><a title="xmpp.protocol.Presence._muc_getSubTagDataAttr" class="py-name" href="#" onclick="return doclink('link-301', '_muc_getSubTagDataAttr', 'link-300');">_muc_getSubTagDataAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'actor'</tt><tt class="py-op">,</tt><tt class="py-string">'jid'</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
</div><a name="Presence.getStatusCode"></a><div id="Presence.getStatusCode-def"><a name="L503"></a><tt class="py-lineno">503</tt> <a class="py-toggle" href="#" id="Presence.getStatusCode-toggle" onclick="return toggle('Presence.getStatusCode');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Presence-class.html#getStatusCode">getStatusCode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Presence.getStatusCode-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Presence.getStatusCode-expanded"><a name="L504"></a><tt class="py-lineno">504</tt>  <tt class="py-line">        <tt class="py-docstring">"""Returns the status code of the presence (for groupchat)"""</tt> </tt>
<a name="L505"></a><tt class="py-lineno">505</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-302" class="py-name"><a title="xmpp.protocol.Presence._muc_getItemAttr" class="py-name" href="#" onclick="return doclink('link-302', '_muc_getItemAttr', 'link-296');">_muc_getItemAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'status'</tt><tt class="py-op">,</tt><tt class="py-string">'code'</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L506"></a><tt class="py-lineno">506</tt>  <tt class="py-line"> </tt>
<a name="Iq"></a><div id="Iq-def"><a name="L507"></a><tt class="py-lineno">507</tt> <a class="py-toggle" href="#" id="Iq-toggle" onclick="return toggle('Iq');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.Iq-class.html">Iq</a><tt class="py-op">(</tt><tt class="py-base-class">Protocol</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  </tt>
</div><a name="L508"></a><tt class="py-lineno">508</tt>  <tt class="py-line">    <tt class="py-docstring">""" XMPP Iq object - get/set dialog mechanism. """</tt> </tt>
<a name="Iq.__init__"></a><div id="Iq.__init__-def"><a name="L509"></a><tt class="py-lineno">509</tt> <a class="py-toggle" href="#" id="Iq.__init__-toggle" onclick="return toggle('Iq.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Iq-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">typ</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">queryNS</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">attrs</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">,</tt> <tt class="py-param">to</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">frm</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">payload</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-param">xmlns</tt><tt class="py-op">=</tt><tt id="link-303" class="py-name"><a title="xmpp.protocol.NS_CLIENT" class="py-name" href="#" onclick="return doclink('link-303', 'NS_CLIENT', 'link-79');">NS_CLIENT</a></tt><tt class="py-op">,</tt> <tt class="py-param">node</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Iq.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Iq.__init__-expanded"><a name="L510"></a><tt class="py-lineno">510</tt>  <tt class="py-line">        <tt class="py-docstring">""" Create Iq object. You can specify type, query namespace</tt> </tt>
<a name="L511"></a><tt class="py-lineno">511</tt>  <tt class="py-line"><tt class="py-docstring">            any additional attributes, recipient of the iq, sender of the iq, any additional payload (f.e. jabber:x:data node) and namespace in one go.</tt> </tt>
<a name="L512"></a><tt class="py-lineno">512</tt>  <tt class="py-line"><tt class="py-docstring">            Alternatively you can pass in the other XML object as the 'node' parameted to replicate it as an iq. """</tt> </tt>
<a name="L513"></a><tt class="py-lineno">513</tt>  <tt class="py-line">        <tt id="link-304" class="py-name"><a title="xmpp.protocol.Protocol" class="py-name" href="#" onclick="return doclink('link-304', 'Protocol', 'link-259');">Protocol</a></tt><tt class="py-op">.</tt><tt id="link-305" class="py-name"><a title="xmpp.auth.Bind.__init__
xmpp.auth.ComponentBind.__init__
xmpp.auth.NonSASL.__init__
xmpp.auth.SASL.__init__
xmpp.browser.Browser.__init__
xmpp.client.CommonClient.__init__
xmpp.client.Component.__init__
xmpp.client.PlugIn.__init__
xmpp.commands.Command_Handler_Prototype.__init__
xmpp.commands.Commands.__init__
xmpp.commands.TestCommand.__init__
xmpp.debug.Debug.__init__
xmpp.debug.NoDebug.__init__
xmpp.dispatcher.Dispatcher.__init__
xmpp.filetransfer.IBB.__init__
xmpp.protocol.DataField.__init__
xmpp.protocol.DataForm.__init__
xmpp.protocol.Error.__init__
xmpp.protocol.ErrorNode.__init__
xmpp.protocol.Iq.__init__
xmpp.protocol.JID.__init__
xmpp.protocol.Message.__init__
xmpp.protocol.Presence.__init__
xmpp.protocol.Protocol.__init__
xmpp.roster.Roster.__init__
xmpp.session.Session.__init__
xmpp.simplexml.Node.__init__
xmpp.simplexml.NodeBuilder.__init__
xmpp.simplexml.T.__init__
xmpp.transports.HTTPPROXYsocket.__init__
xmpp.transports.TCPsocket.__init__
xmpp.transports.error.__init__" class="py-name" href="#" onclick="return doclink('link-305', '__init__', 'link-208');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">'iq'</tt><tt class="py-op">,</tt> <tt class="py-name">to</tt><tt class="py-op">=</tt><tt class="py-name">to</tt><tt class="py-op">,</tt> <tt class="py-name">typ</tt><tt class="py-op">=</tt><tt class="py-name">typ</tt><tt class="py-op">,</tt> <tt class="py-name">attrs</tt><tt class="py-op">=</tt><tt class="py-name">attrs</tt><tt class="py-op">,</tt> <tt class="py-name">frm</tt><tt class="py-op">=</tt><tt class="py-name">frm</tt><tt class="py-op">,</tt> <tt class="py-name">xmlns</tt><tt class="py-op">=</tt><tt class="py-name">xmlns</tt><tt class="py-op">,</tt> <tt class="py-name">node</tt><tt class="py-op">=</tt><tt class="py-name">node</tt><tt class="py-op">)</tt> </tt>
<a name="L514"></a><tt class="py-lineno">514</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">payload</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-306" class="py-name" targets="Method xmpp.protocol.Iq.setQueryPayload()=xmpp.protocol.Iq-class.html#setQueryPayload"><a title="xmpp.protocol.Iq.setQueryPayload" class="py-name" href="#" onclick="return doclink('link-306', 'setQueryPayload', 'link-306');">setQueryPayload</a></tt><tt class="py-op">(</tt><tt class="py-name">payload</tt><tt class="py-op">)</tt> </tt>
<a name="L515"></a><tt class="py-lineno">515</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">queryNS</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-307" class="py-name" targets="Method xmpp.protocol.Iq.setQueryNS()=xmpp.protocol.Iq-class.html#setQueryNS"><a title="xmpp.protocol.Iq.setQueryNS" class="py-name" href="#" onclick="return doclink('link-307', 'setQueryNS', 'link-307');">setQueryNS</a></tt><tt class="py-op">(</tt><tt class="py-name">queryNS</tt><tt class="py-op">)</tt> </tt>
</div><a name="Iq.getQueryNS"></a><div id="Iq.getQueryNS-def"><a name="L516"></a><tt class="py-lineno">516</tt> <a class="py-toggle" href="#" id="Iq.getQueryNS-toggle" onclick="return toggle('Iq.getQueryNS');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Iq-class.html#getQueryNS">getQueryNS</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Iq.getQueryNS-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Iq.getQueryNS-expanded"><a name="L517"></a><tt class="py-lineno">517</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the namespace of the 'query' child element."""</tt> </tt>
<a name="L518"></a><tt class="py-lineno">518</tt>  <tt class="py-line">        <tt class="py-name">tag</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-308" class="py-name"><a title="xmpp.simplexml.Node.getTag" class="py-name" href="#" onclick="return doclink('link-308', 'getTag', 'link-229');">getTag</a></tt><tt class="py-op">(</tt><tt class="py-string">'query'</tt><tt class="py-op">)</tt> </tt>
<a name="L519"></a><tt class="py-lineno">519</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">tag</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">tag</tt><tt class="py-op">.</tt><tt id="link-309" class="py-name"><a title="xmpp.simplexml.Node.getNamespace" class="py-name" href="#" onclick="return doclink('link-309', 'getNamespace', 'link-255');">getNamespace</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="Iq.getQuerynode"></a><div id="Iq.getQuerynode-def"><a name="L520"></a><tt class="py-lineno">520</tt> <a class="py-toggle" href="#" id="Iq.getQuerynode-toggle" onclick="return toggle('Iq.getQuerynode');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Iq-class.html#getQuerynode">getQuerynode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Iq.getQuerynode-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Iq.getQuerynode-expanded"><a name="L521"></a><tt class="py-lineno">521</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the 'node' attribute value of the 'query' child element."""</tt> </tt>
<a name="L522"></a><tt class="py-lineno">522</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-310" class="py-name"><a title="xmpp.simplexml.Node.getTagAttr" class="py-name" href="#" onclick="return doclink('link-310', 'getTagAttr', 'link-234');">getTagAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'query'</tt><tt class="py-op">,</tt><tt class="py-string">'node'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Iq.getQueryPayload"></a><div id="Iq.getQueryPayload-def"><a name="L523"></a><tt class="py-lineno">523</tt> <a class="py-toggle" href="#" id="Iq.getQueryPayload-toggle" onclick="return toggle('Iq.getQueryPayload');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Iq-class.html#getQueryPayload">getQueryPayload</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Iq.getQueryPayload-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Iq.getQueryPayload-expanded"><a name="L524"></a><tt class="py-lineno">524</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the 'query' child element payload."""</tt> </tt>
<a name="L525"></a><tt class="py-lineno">525</tt>  <tt class="py-line">        <tt class="py-name">tag</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-311" class="py-name"><a title="xmpp.simplexml.Node.getTag" class="py-name" href="#" onclick="return doclink('link-311', 'getTag', 'link-229');">getTag</a></tt><tt class="py-op">(</tt><tt class="py-string">'query'</tt><tt class="py-op">)</tt> </tt>
<a name="L526"></a><tt class="py-lineno">526</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">tag</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">tag</tt><tt class="py-op">.</tt><tt id="link-312" class="py-name" targets="Method xmpp.simplexml.Node.getPayload()=xmpp.simplexml.Node-class.html#getPayload"><a title="xmpp.simplexml.Node.getPayload" class="py-name" href="#" onclick="return doclink('link-312', 'getPayload', 'link-312');">getPayload</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="Iq.getQueryChildren"></a><div id="Iq.getQueryChildren-def"><a name="L527"></a><tt class="py-lineno">527</tt> <a class="py-toggle" href="#" id="Iq.getQueryChildren-toggle" onclick="return toggle('Iq.getQueryChildren');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Iq-class.html#getQueryChildren">getQueryChildren</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Iq.getQueryChildren-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Iq.getQueryChildren-expanded"><a name="L528"></a><tt class="py-lineno">528</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the 'query' child element child nodes."""</tt> </tt>
<a name="L529"></a><tt class="py-lineno">529</tt>  <tt class="py-line">        <tt class="py-name">tag</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-313" class="py-name"><a title="xmpp.simplexml.Node.getTag" class="py-name" href="#" onclick="return doclink('link-313', 'getTag', 'link-229');">getTag</a></tt><tt class="py-op">(</tt><tt class="py-string">'query'</tt><tt class="py-op">)</tt> </tt>
<a name="L530"></a><tt class="py-lineno">530</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">tag</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">tag</tt><tt class="py-op">.</tt><tt id="link-314" class="py-name"><a title="xmpp.simplexml.Node.getChildren" class="py-name" href="#" onclick="return doclink('link-314', 'getChildren', 'link-230');">getChildren</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="Iq.setQueryNS"></a><div id="Iq.setQueryNS-def"><a name="L531"></a><tt class="py-lineno">531</tt> <a class="py-toggle" href="#" id="Iq.setQueryNS-toggle" onclick="return toggle('Iq.setQueryNS');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Iq-class.html#setQueryNS">setQueryNS</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">namespace</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Iq.setQueryNS-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Iq.setQueryNS-expanded"><a name="L532"></a><tt class="py-lineno">532</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the namespace of the 'query' child element."""</tt> </tt>
<a name="L533"></a><tt class="py-lineno">533</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-315" class="py-name"><a title="xmpp.simplexml.Node.setTag" class="py-name" href="#" onclick="return doclink('link-315', 'setTag', 'link-252');">setTag</a></tt><tt class="py-op">(</tt><tt class="py-string">'query'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-316" class="py-name"><a title="xmpp.simplexml.Node.setNamespace" class="py-name" href="#" onclick="return doclink('link-316', 'setNamespace', 'link-210');">setNamespace</a></tt><tt class="py-op">(</tt><tt class="py-name">namespace</tt><tt class="py-op">)</tt> </tt>
</div><a name="Iq.setQueryPayload"></a><div id="Iq.setQueryPayload-def"><a name="L534"></a><tt class="py-lineno">534</tt> <a class="py-toggle" href="#" id="Iq.setQueryPayload-toggle" onclick="return toggle('Iq.setQueryPayload');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Iq-class.html#setQueryPayload">setQueryPayload</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">payload</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Iq.setQueryPayload-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Iq.setQueryPayload-expanded"><a name="L535"></a><tt class="py-lineno">535</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the 'query' child element payload."""</tt> </tt>
<a name="L536"></a><tt class="py-lineno">536</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-317" class="py-name"><a title="xmpp.simplexml.Node.setTag" class="py-name" href="#" onclick="return doclink('link-317', 'setTag', 'link-252');">setTag</a></tt><tt class="py-op">(</tt><tt class="py-string">'query'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-318" class="py-name" targets="Method xmpp.simplexml.Node.setPayload()=xmpp.simplexml.Node-class.html#setPayload"><a title="xmpp.simplexml.Node.setPayload" class="py-name" href="#" onclick="return doclink('link-318', 'setPayload', 'link-318');">setPayload</a></tt><tt class="py-op">(</tt><tt class="py-name">payload</tt><tt class="py-op">)</tt> </tt>
</div><a name="Iq.setQuerynode"></a><div id="Iq.setQuerynode-def"><a name="L537"></a><tt class="py-lineno">537</tt> <a class="py-toggle" href="#" id="Iq.setQuerynode-toggle" onclick="return toggle('Iq.setQuerynode');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Iq-class.html#setQuerynode">setQuerynode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">node</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Iq.setQuerynode-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Iq.setQuerynode-expanded"><a name="L538"></a><tt class="py-lineno">538</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the 'node' attribute value of the 'query' child element."""</tt> </tt>
<a name="L539"></a><tt class="py-lineno">539</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-319" class="py-name" targets="Method xmpp.simplexml.Node.setTagAttr()=xmpp.simplexml.Node-class.html#setTagAttr"><a title="xmpp.simplexml.Node.setTagAttr" class="py-name" href="#" onclick="return doclink('link-319', 'setTagAttr', 'link-319');">setTagAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'query'</tt><tt class="py-op">,</tt><tt class="py-string">'node'</tt><tt class="py-op">,</tt><tt class="py-name">node</tt><tt class="py-op">)</tt> </tt>
</div><a name="Iq.buildReply"></a><div id="Iq.buildReply-def"><a name="L540"></a><tt class="py-lineno">540</tt> <a class="py-toggle" href="#" id="Iq.buildReply-toggle" onclick="return toggle('Iq.buildReply');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Iq-class.html#buildReply">buildReply</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">typ</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Iq.buildReply-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Iq.buildReply-expanded"><a name="L541"></a><tt class="py-lineno">541</tt>  <tt class="py-line">        <tt class="py-docstring">""" Builds and returns another Iq object of specified type.</tt> </tt>
<a name="L542"></a><tt class="py-lineno">542</tt>  <tt class="py-line"><tt class="py-docstring">            The to, from and query child node of new Iq are pre-set as reply to this Iq. """</tt> </tt>
<a name="L543"></a><tt class="py-lineno">543</tt>  <tt class="py-line">        <tt class="py-name">iq</tt><tt class="py-op">=</tt><tt id="link-320" class="py-name" targets="Class xmpp.protocol.Iq=xmpp.protocol.Iq-class.html"><a title="xmpp.protocol.Iq" class="py-name" href="#" onclick="return doclink('link-320', 'Iq', 'link-320');">Iq</a></tt><tt class="py-op">(</tt><tt class="py-name">typ</tt><tt class="py-op">,</tt><tt class="py-name">to</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-321" class="py-name"><a title="xmpp.protocol.Protocol.getFrom" class="py-name" href="#" onclick="return doclink('link-321', 'getFrom', 'link-270');">getFrom</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">frm</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-322" class="py-name"><a title="xmpp.protocol.Protocol.getTo" class="py-name" href="#" onclick="return doclink('link-322', 'getTo', 'link-271');">getTo</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">attrs</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-string">'id'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-323" class="py-name" targets="Method xmpp.protocol.Protocol.getID()=xmpp.protocol.Protocol-class.html#getID"><a title="xmpp.protocol.Protocol.getID" class="py-name" href="#" onclick="return doclink('link-323', 'getID', 'link-323');">getID</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L544"></a><tt class="py-lineno">544</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-324" class="py-name"><a title="xmpp.simplexml.Node.getTag" class="py-name" href="#" onclick="return doclink('link-324', 'getTag', 'link-229');">getTag</a></tt><tt class="py-op">(</tt><tt class="py-string">'query'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">iq</tt><tt class="py-op">.</tt><tt id="link-325" class="py-name"><a title="xmpp.protocol.Iq.setQueryNS" class="py-name" href="#" onclick="return doclink('link-325', 'setQueryNS', 'link-307');">setQueryNS</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-326" class="py-name" targets="Method xmpp.protocol.Iq.getQueryNS()=xmpp.protocol.Iq-class.html#getQueryNS"><a title="xmpp.protocol.Iq.getQueryNS" class="py-name" href="#" onclick="return doclink('link-326', 'getQueryNS', 'link-326');">getQueryNS</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L545"></a><tt class="py-lineno">545</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">iq</tt> </tt>
</div></div><a name="L546"></a><tt class="py-lineno">546</tt>  <tt class="py-line"> </tt>
<a name="ErrorNode"></a><div id="ErrorNode-def"><a name="L547"></a><tt class="py-lineno">547</tt> <a class="py-toggle" href="#" id="ErrorNode-toggle" onclick="return toggle('ErrorNode');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.ErrorNode-class.html">ErrorNode</a><tt class="py-op">(</tt><tt class="py-base-class">Node</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ErrorNode-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ErrorNode-expanded"><a name="L548"></a><tt class="py-lineno">548</tt>  <tt class="py-line">    <tt class="py-docstring">""" XMPP-style error element.</tt> </tt>
<a name="L549"></a><tt class="py-lineno">549</tt>  <tt class="py-line"><tt class="py-docstring">        In the case of stanza error should be attached to XMPP stanza.</tt> </tt>
<a name="L550"></a><tt class="py-lineno">550</tt>  <tt class="py-line"><tt class="py-docstring">        In the case of stream-level errors should be used separately. """</tt> </tt>
<a name="ErrorNode.__init__"></a><div id="ErrorNode.__init__-def"><a name="L551"></a><tt class="py-lineno">551</tt> <a class="py-toggle" href="#" id="ErrorNode.__init__-toggle" onclick="return toggle('ErrorNode.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.ErrorNode-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">name</tt><tt class="py-op">,</tt><tt class="py-param">code</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">typ</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">text</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ErrorNode.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ErrorNode.__init__-expanded"><a name="L552"></a><tt class="py-lineno">552</tt>  <tt class="py-line">        <tt class="py-docstring">""" Create new error node object.</tt> </tt>
<a name="L553"></a><tt class="py-lineno">553</tt>  <tt class="py-line"><tt class="py-docstring">            Mandatory parameter: name - name of error condition.</tt> </tt>
<a name="L554"></a><tt class="py-lineno">554</tt>  <tt class="py-line"><tt class="py-docstring">            Optional parameters: code, typ, text. Used for backwards compartibility with older jabber protocol."""</tt> </tt>
<a name="L555"></a><tt class="py-lineno">555</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-327" class="py-name"><a title="xmpp.ERRORS
xmpp.auth.ERRORS
xmpp.browser.ERRORS
xmpp.commands.ERRORS
xmpp.dispatcher.ERRORS
xmpp.features.ERRORS
xmpp.filetransfer.ERRORS
xmpp.protocol.ERRORS
xmpp.roster.ERRORS
xmpp.session.ERRORS
xmpp.transports.ERRORS" class="py-name" href="#" onclick="return doclink('link-327', 'ERRORS', 'link-159');">ERRORS</a></tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt id="link-328" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-328', 'name', 'link-167');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L556"></a><tt class="py-lineno">556</tt>  <tt class="py-line">            <tt class="py-name">cod</tt><tt class="py-op">,</tt><tt class="py-name">type</tt><tt class="py-op">,</tt><tt class="py-name">txt</tt><tt class="py-op">=</tt><tt id="link-329" class="py-name"><a title="xmpp.ERRORS
xmpp.auth.ERRORS
xmpp.browser.ERRORS
xmpp.commands.ERRORS
xmpp.dispatcher.ERRORS
xmpp.features.ERRORS
xmpp.filetransfer.ERRORS
xmpp.protocol.ERRORS
xmpp.roster.ERRORS
xmpp.session.ERRORS
xmpp.transports.ERRORS" class="py-name" href="#" onclick="return doclink('link-329', 'ERRORS', 'link-159');">ERRORS</a></tt><tt class="py-op">[</tt><tt id="link-330" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-330', 'name', 'link-167');">name</a></tt><tt class="py-op">]</tt> </tt>
<a name="L557"></a><tt class="py-lineno">557</tt>  <tt class="py-line">            <tt class="py-name">ns</tt><tt class="py-op">=</tt><tt id="link-331" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-331', 'name', 'link-167');">name</a></tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L558"></a><tt class="py-lineno">558</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">cod</tt><tt class="py-op">,</tt><tt class="py-name">ns</tt><tt class="py-op">,</tt><tt class="py-name">type</tt><tt class="py-op">,</tt><tt class="py-name">txt</tt><tt class="py-op">=</tt><tt class="py-string">'500'</tt><tt class="py-op">,</tt><tt id="link-332" class="py-name"><a title="xmpp.protocol.NS_STANZAS" class="py-name" href="#" onclick="return doclink('link-332', 'NS_STANZAS', 'link-144');">NS_STANZAS</a></tt><tt class="py-op">,</tt><tt class="py-string">'cancel'</tt><tt class="py-op">,</tt><tt class="py-string">''</tt> </tt>
<a name="L559"></a><tt class="py-lineno">559</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">typ</tt><tt class="py-op">:</tt> <tt class="py-name">type</tt><tt class="py-op">=</tt><tt class="py-name">typ</tt> </tt>
<a name="L560"></a><tt class="py-lineno">560</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">code</tt><tt class="py-op">:</tt> <tt class="py-name">cod</tt><tt class="py-op">=</tt><tt class="py-name">code</tt> </tt>
<a name="L561"></a><tt class="py-lineno">561</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">text</tt><tt class="py-op">:</tt> <tt class="py-name">txt</tt><tt class="py-op">=</tt><tt class="py-name">text</tt> </tt>
<a name="L562"></a><tt class="py-lineno">562</tt>  <tt class="py-line">        <tt id="link-333" class="py-name"><a title="xmpp.simplexml.Node" class="py-name" href="#" onclick="return doclink('link-333', 'Node', 'link-1');">Node</a></tt><tt class="py-op">.</tt><tt id="link-334" class="py-name"><a title="xmpp.auth.Bind.__init__
xmpp.auth.ComponentBind.__init__
xmpp.auth.NonSASL.__init__
xmpp.auth.SASL.__init__
xmpp.browser.Browser.__init__
xmpp.client.CommonClient.__init__
xmpp.client.Component.__init__
xmpp.client.PlugIn.__init__
xmpp.commands.Command_Handler_Prototype.__init__
xmpp.commands.Commands.__init__
xmpp.commands.TestCommand.__init__
xmpp.debug.Debug.__init__
xmpp.debug.NoDebug.__init__
xmpp.dispatcher.Dispatcher.__init__
xmpp.filetransfer.IBB.__init__
xmpp.protocol.DataField.__init__
xmpp.protocol.DataForm.__init__
xmpp.protocol.Error.__init__
xmpp.protocol.ErrorNode.__init__
xmpp.protocol.Iq.__init__
xmpp.protocol.JID.__init__
xmpp.protocol.Message.__init__
xmpp.protocol.Presence.__init__
xmpp.protocol.Protocol.__init__
xmpp.roster.Roster.__init__
xmpp.session.Session.__init__
xmpp.simplexml.Node.__init__
xmpp.simplexml.NodeBuilder.__init__
xmpp.simplexml.T.__init__
xmpp.transports.HTTPPROXYsocket.__init__
xmpp.transports.TCPsocket.__init__
xmpp.transports.error.__init__" class="py-name" href="#" onclick="return doclink('link-334', '__init__', 'link-208');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-string">'error'</tt><tt class="py-op">,</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt id="link-335" class="py-name"><a title="xmpp.simplexml.Node" class="py-name" href="#" onclick="return doclink('link-335', 'Node', 'link-1');">Node</a></tt><tt class="py-op">(</tt><tt id="link-336" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-336', 'name', 'link-167');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L563"></a><tt class="py-lineno">563</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-337" class="py-name"><a title="xmpp.simplexml.Node.setAttr" class="py-name" href="#" onclick="return doclink('link-337', 'setAttr', 'link-222');">setAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'type'</tt><tt class="py-op">,</tt><tt class="py-name">type</tt><tt class="py-op">)</tt> </tt>
<a name="L564"></a><tt class="py-lineno">564</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">cod</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-338" class="py-name" targets="Method xmpp.simplexml.Node.setName()=xmpp.simplexml.Node-class.html#setName"><a title="xmpp.simplexml.Node.setName" class="py-name" href="#" onclick="return doclink('link-338', 'setName', 'link-338');">setName</a></tt><tt class="py-op">(</tt><tt class="py-string">'stream:error'</tt><tt class="py-op">)</tt> </tt>
<a name="L565"></a><tt class="py-lineno">565</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">txt</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-339" class="py-name"><a title="xmpp.simplexml.Node.addChild" class="py-name" href="#" onclick="return doclink('link-339', 'addChild', 'link-250');">addChild</a></tt><tt class="py-op">(</tt><tt class="py-name">node</tt><tt class="py-op">=</tt><tt id="link-340" class="py-name"><a title="xmpp.simplexml.Node" class="py-name" href="#" onclick="return doclink('link-340', 'Node', 'link-1');">Node</a></tt><tt class="py-op">(</tt><tt class="py-name">ns</tt><tt class="py-op">+</tt><tt class="py-string">' text'</tt><tt class="py-op">,</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-name">txt</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L566"></a><tt class="py-lineno">566</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">cod</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-341" class="py-name"><a title="xmpp.simplexml.Node.setAttr" class="py-name" href="#" onclick="return doclink('link-341', 'setAttr', 'link-222');">setAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'code'</tt><tt class="py-op">,</tt><tt class="py-name">cod</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L567"></a><tt class="py-lineno">567</tt>  <tt class="py-line"> </tt>
<a name="Error"></a><div id="Error-def"><a name="L568"></a><tt class="py-lineno">568</tt> <a class="py-toggle" href="#" id="Error-toggle" onclick="return toggle('Error');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.Error-class.html">Error</a><tt class="py-op">(</tt><tt class="py-base-class">Protocol</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Error-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Error-expanded"><a name="L569"></a><tt class="py-lineno">569</tt>  <tt class="py-line">    <tt class="py-docstring">""" Used to quickly transform received stanza into error reply."""</tt> </tt>
<a name="Error.__init__"></a><div id="Error.__init__-def"><a name="L570"></a><tt class="py-lineno">570</tt> <a class="py-toggle" href="#" id="Error.__init__-toggle" onclick="return toggle('Error.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Error-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">node</tt><tt class="py-op">,</tt><tt class="py-param">error</tt><tt class="py-op">,</tt><tt class="py-param">reply</tt><tt class="py-op">=</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Error.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Error.__init__-expanded"><a name="L571"></a><tt class="py-lineno">571</tt>  <tt class="py-line">        <tt class="py-docstring">""" Create error reply basing on the received 'node' stanza and the 'error' error condition.</tt> </tt>
<a name="L572"></a><tt class="py-lineno">572</tt>  <tt class="py-line"><tt class="py-docstring">            If the 'node' is not the received stanza but locally created ('to' and 'from' fields needs not swapping)</tt> </tt>
<a name="L573"></a><tt class="py-lineno">573</tt>  <tt class="py-line"><tt class="py-docstring">            specify the 'reply' argument as false."""</tt> </tt>
<a name="L574"></a><tt class="py-lineno">574</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">reply</tt><tt class="py-op">:</tt> <tt id="link-342" class="py-name"><a title="xmpp.protocol.Protocol" class="py-name" href="#" onclick="return doclink('link-342', 'Protocol', 'link-259');">Protocol</a></tt><tt class="py-op">.</tt><tt id="link-343" class="py-name"><a title="xmpp.auth.Bind.__init__
xmpp.auth.ComponentBind.__init__
xmpp.auth.NonSASL.__init__
xmpp.auth.SASL.__init__
xmpp.browser.Browser.__init__
xmpp.client.CommonClient.__init__
xmpp.client.Component.__init__
xmpp.client.PlugIn.__init__
xmpp.commands.Command_Handler_Prototype.__init__
xmpp.commands.Commands.__init__
xmpp.commands.TestCommand.__init__
xmpp.debug.Debug.__init__
xmpp.debug.NoDebug.__init__
xmpp.dispatcher.Dispatcher.__init__
xmpp.filetransfer.IBB.__init__
xmpp.protocol.DataField.__init__
xmpp.protocol.DataForm.__init__
xmpp.protocol.Error.__init__
xmpp.protocol.ErrorNode.__init__
xmpp.protocol.Iq.__init__
xmpp.protocol.JID.__init__
xmpp.protocol.Message.__init__
xmpp.protocol.Presence.__init__
xmpp.protocol.Protocol.__init__
xmpp.roster.Roster.__init__
xmpp.session.Session.__init__
xmpp.simplexml.Node.__init__
xmpp.simplexml.NodeBuilder.__init__
xmpp.simplexml.T.__init__
xmpp.transports.HTTPPROXYsocket.__init__
xmpp.transports.TCPsocket.__init__
xmpp.transports.error.__init__" class="py-name" href="#" onclick="return doclink('link-343', '__init__', 'link-208');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-name">to</tt><tt class="py-op">=</tt><tt class="py-name">node</tt><tt class="py-op">.</tt><tt id="link-344" class="py-name"><a title="xmpp.protocol.Protocol.getFrom" class="py-name" href="#" onclick="return doclink('link-344', 'getFrom', 'link-270');">getFrom</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">frm</tt><tt class="py-op">=</tt><tt class="py-name">node</tt><tt class="py-op">.</tt><tt id="link-345" class="py-name"><a title="xmpp.protocol.Protocol.getTo" class="py-name" href="#" onclick="return doclink('link-345', 'getTo', 'link-271');">getTo</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">node</tt><tt class="py-op">=</tt><tt class="py-name">node</tt><tt class="py-op">)</tt> </tt>
<a name="L575"></a><tt class="py-lineno">575</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt id="link-346" class="py-name"><a title="xmpp.protocol.Protocol" class="py-name" href="#" onclick="return doclink('link-346', 'Protocol', 'link-259');">Protocol</a></tt><tt class="py-op">.</tt><tt id="link-347" class="py-name"><a title="xmpp.auth.Bind.__init__
xmpp.auth.ComponentBind.__init__
xmpp.auth.NonSASL.__init__
xmpp.auth.SASL.__init__
xmpp.browser.Browser.__init__
xmpp.client.CommonClient.__init__
xmpp.client.Component.__init__
xmpp.client.PlugIn.__init__
xmpp.commands.Command_Handler_Prototype.__init__
xmpp.commands.Commands.__init__
xmpp.commands.TestCommand.__init__
xmpp.debug.Debug.__init__
xmpp.debug.NoDebug.__init__
xmpp.dispatcher.Dispatcher.__init__
xmpp.filetransfer.IBB.__init__
xmpp.protocol.DataField.__init__
xmpp.protocol.DataForm.__init__
xmpp.protocol.Error.__init__
xmpp.protocol.ErrorNode.__init__
xmpp.protocol.Iq.__init__
xmpp.protocol.JID.__init__
xmpp.protocol.Message.__init__
xmpp.protocol.Presence.__init__
xmpp.protocol.Protocol.__init__
xmpp.roster.Roster.__init__
xmpp.session.Session.__init__
xmpp.simplexml.Node.__init__
xmpp.simplexml.NodeBuilder.__init__
xmpp.simplexml.T.__init__
xmpp.transports.HTTPPROXYsocket.__init__
xmpp.transports.TCPsocket.__init__
xmpp.transports.error.__init__" class="py-name" href="#" onclick="return doclink('link-347', '__init__', 'link-208');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-name">node</tt><tt class="py-op">=</tt><tt class="py-name">node</tt><tt class="py-op">)</tt> </tt>
<a name="L576"></a><tt class="py-lineno">576</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-348" class="py-name" targets="Method xmpp.protocol.Protocol.setError()=xmpp.protocol.Protocol-class.html#setError"><a title="xmpp.protocol.Protocol.setError" class="py-name" href="#" onclick="return doclink('link-348', 'setError', 'link-348');">setError</a></tt><tt class="py-op">(</tt><tt id="link-349" class="py-name"><a title="xmpp.transports.error" class="py-name" href="#" onclick="return doclink('link-349', 'error', 'link-237');">error</a></tt><tt class="py-op">)</tt> </tt>
<a name="L577"></a><tt class="py-lineno">577</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">node</tt><tt class="py-op">.</tt><tt id="link-350" class="py-name"><a title="xmpp.protocol.DataField.getType
xmpp.protocol.DataForm.getType
xmpp.protocol.Protocol.getType" class="py-name" href="#" onclick="return doclink('link-350', 'getType', 'link-171');">getType</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-string">'error'</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-351" class="py-name"><a title="xmpp.protocol.JID.__str__
xmpp.simplexml.Node.__str__
xmpp.transports.error.__str__" class="py-name" href="#" onclick="return doclink('link-351', '__str__', 'link-198');">__str__</a></tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-352" class="py-name" targets="Method xmpp.protocol.Error.__dupstr__()=xmpp.protocol.Error-class.html#__dupstr__"><a title="xmpp.protocol.Error.__dupstr__" class="py-name" href="#" onclick="return doclink('link-352', '__dupstr__', 'link-352');">__dupstr__</a></tt> </tt>
</div><a name="Error.__dupstr__"></a><div id="Error.__dupstr__-def"><a name="L578"></a><tt class="py-lineno">578</tt> <a class="py-toggle" href="#" id="Error.__dupstr__-toggle" onclick="return toggle('Error.__dupstr__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.Error-class.html#__dupstr__">__dupstr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">dup1</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">dup2</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Error.__dupstr__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Error.__dupstr__-expanded"><a name="L579"></a><tt class="py-lineno">579</tt>  <tt class="py-line">        <tt class="py-docstring">""" Dummy function used as preventor of creating error node in reply to error node.</tt> </tt>
<a name="L580"></a><tt class="py-lineno">580</tt>  <tt class="py-line"><tt class="py-docstring">            I.e. you will not be able to serialise "double" error into string.</tt> </tt>
<a name="L581"></a><tt class="py-lineno">581</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L582"></a><tt class="py-lineno">582</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">''</tt> </tt>
</div></div><a name="L583"></a><tt class="py-lineno">583</tt>  <tt class="py-line"> </tt>
<a name="DataField"></a><div id="DataField-def"><a name="L584"></a><tt class="py-lineno">584</tt> <a class="py-toggle" href="#" id="DataField-toggle" onclick="return toggle('DataField');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html">DataField</a><tt class="py-op">(</tt><tt class="py-base-class">Node</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="DataField-expanded"><a name="L585"></a><tt class="py-lineno">585</tt>  <tt class="py-line">    <tt class="py-docstring">""" This class is used in the DataForm class to describe the single data item.</tt> </tt>
<a name="L586"></a><tt class="py-lineno">586</tt>  <tt class="py-line"><tt class="py-docstring">        If you are working with jabber:x:data (XEP-0004, XEP-0068, XEP-0122) </tt> </tt>
<a name="L587"></a><tt class="py-lineno">587</tt>  <tt class="py-line"><tt class="py-docstring">        then you will need to work with instances of this class. """</tt> </tt>
<a name="DataField.__init__"></a><div id="DataField.__init__-def"><a name="L588"></a><tt class="py-lineno">588</tt> <a class="py-toggle" href="#" id="DataField.__init__-toggle" onclick="return toggle('DataField.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">name</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">value</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">typ</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">required</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-param">label</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">desc</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">options</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-param">node</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.__init__-expanded"><a name="L589"></a><tt class="py-lineno">589</tt>  <tt class="py-line">        <tt class="py-docstring">""" Create new data field of specified name,value and type.</tt> </tt>
<a name="L590"></a><tt class="py-lineno">590</tt>  <tt class="py-line"><tt class="py-docstring">            Also 'required','desc' and 'options' fields can be set.</tt> </tt>
<a name="L591"></a><tt class="py-lineno">591</tt>  <tt class="py-line"><tt class="py-docstring">            Alternatively other XML object can be passed in as the 'node' parameted to replicate it as a new datafiled.</tt> </tt>
<a name="L592"></a><tt class="py-lineno">592</tt>  <tt class="py-line"><tt class="py-docstring">            """</tt> </tt>
<a name="L593"></a><tt class="py-lineno">593</tt>  <tt class="py-line">        <tt id="link-353" class="py-name"><a title="xmpp.simplexml.Node" class="py-name" href="#" onclick="return doclink('link-353', 'Node', 'link-1');">Node</a></tt><tt class="py-op">.</tt><tt id="link-354" class="py-name"><a title="xmpp.auth.Bind.__init__
xmpp.auth.ComponentBind.__init__
xmpp.auth.NonSASL.__init__
xmpp.auth.SASL.__init__
xmpp.browser.Browser.__init__
xmpp.client.CommonClient.__init__
xmpp.client.Component.__init__
xmpp.client.PlugIn.__init__
xmpp.commands.Command_Handler_Prototype.__init__
xmpp.commands.Commands.__init__
xmpp.commands.TestCommand.__init__
xmpp.debug.Debug.__init__
xmpp.debug.NoDebug.__init__
xmpp.dispatcher.Dispatcher.__init__
xmpp.filetransfer.IBB.__init__
xmpp.protocol.DataField.__init__
xmpp.protocol.DataForm.__init__
xmpp.protocol.Error.__init__
xmpp.protocol.ErrorNode.__init__
xmpp.protocol.Iq.__init__
xmpp.protocol.JID.__init__
xmpp.protocol.Message.__init__
xmpp.protocol.Presence.__init__
xmpp.protocol.Protocol.__init__
xmpp.roster.Roster.__init__
xmpp.session.Session.__init__
xmpp.simplexml.Node.__init__
xmpp.simplexml.NodeBuilder.__init__
xmpp.simplexml.T.__init__
xmpp.transports.HTTPPROXYsocket.__init__
xmpp.transports.TCPsocket.__init__
xmpp.transports.error.__init__" class="py-name" href="#" onclick="return doclink('link-354', '__init__', 'link-208');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-string">'field'</tt><tt class="py-op">,</tt><tt class="py-name">node</tt><tt class="py-op">=</tt><tt class="py-name">node</tt><tt class="py-op">)</tt> </tt>
<a name="L594"></a><tt class="py-lineno">594</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-355" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-355', 'name', 'link-167');">name</a></tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-356" class="py-name" targets="Method xmpp.protocol.DataField.setVar()=xmpp.protocol.DataField-class.html#setVar"><a title="xmpp.protocol.DataField.setVar" class="py-name" href="#" onclick="return doclink('link-356', 'setVar', 'link-356');">setVar</a></tt><tt class="py-op">(</tt><tt id="link-357" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-357', 'name', 'link-167');">name</a></tt><tt class="py-op">)</tt> </tt>
<a name="L595"></a><tt class="py-lineno">595</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-name">list</tt><tt class="py-op">,</tt><tt class="py-name">tuple</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-358" class="py-name" targets="Method xmpp.protocol.DataField.setValues()=xmpp.protocol.DataField-class.html#setValues"><a title="xmpp.protocol.DataField.setValues" class="py-name" href="#" onclick="return doclink('link-358', 'setValues', 'link-358');">setValues</a></tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
<a name="L596"></a><tt class="py-lineno">596</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">value</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-359" class="py-name" targets="Method xmpp.protocol.DataField.setValue()=xmpp.protocol.DataField-class.html#setValue"><a title="xmpp.protocol.DataField.setValue" class="py-name" href="#" onclick="return doclink('link-359', 'setValue', 'link-359');">setValue</a></tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
<a name="L597"></a><tt class="py-lineno">597</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">typ</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-360" class="py-name"><a title="xmpp.protocol.DataField.setType
xmpp.protocol.DataForm.setType
xmpp.protocol.Protocol.setType" class="py-name" href="#" onclick="return doclink('link-360', 'setType', 'link-249');">setType</a></tt><tt class="py-op">(</tt><tt class="py-name">typ</tt><tt class="py-op">)</tt> </tt>
<a name="L598"></a><tt class="py-lineno">598</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-keyword">not</tt> <tt class="py-name">typ</tt> <tt class="py-keyword">and</tt> <tt class="py-keyword">not</tt> <tt class="py-name">node</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-361" class="py-name"><a title="xmpp.protocol.DataField.setType
xmpp.protocol.DataForm.setType
xmpp.protocol.Protocol.setType" class="py-name" href="#" onclick="return doclink('link-361', 'setType', 'link-249');">setType</a></tt><tt class="py-op">(</tt><tt class="py-string">'text-single'</tt><tt class="py-op">)</tt> </tt>
<a name="L599"></a><tt class="py-lineno">599</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">required</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-362" class="py-name" targets="Method xmpp.protocol.DataField.setRequired()=xmpp.protocol.DataField-class.html#setRequired"><a title="xmpp.protocol.DataField.setRequired" class="py-name" href="#" onclick="return doclink('link-362', 'setRequired', 'link-362');">setRequired</a></tt><tt class="py-op">(</tt><tt class="py-name">required</tt><tt class="py-op">)</tt> </tt>
<a name="L600"></a><tt class="py-lineno">600</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">label</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-363" class="py-name" targets="Method xmpp.protocol.DataField.setLabel()=xmpp.protocol.DataField-class.html#setLabel"><a title="xmpp.protocol.DataField.setLabel" class="py-name" href="#" onclick="return doclink('link-363', 'setLabel', 'link-363');">setLabel</a></tt><tt class="py-op">(</tt><tt class="py-name">label</tt><tt class="py-op">)</tt> </tt>
<a name="L601"></a><tt class="py-lineno">601</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">desc</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-364" class="py-name" targets="Method xmpp.protocol.DataField.setDesc()=xmpp.protocol.DataField-class.html#setDesc"><a title="xmpp.protocol.DataField.setDesc" class="py-name" href="#" onclick="return doclink('link-364', 'setDesc', 'link-364');">setDesc</a></tt><tt class="py-op">(</tt><tt class="py-name">desc</tt><tt class="py-op">)</tt> </tt>
<a name="L602"></a><tt class="py-lineno">602</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">options</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-365" class="py-name" targets="Method xmpp.protocol.DataField.setOptions()=xmpp.protocol.DataField-class.html#setOptions"><a title="xmpp.protocol.DataField.setOptions" class="py-name" href="#" onclick="return doclink('link-365', 'setOptions', 'link-365');">setOptions</a></tt><tt class="py-op">(</tt><tt class="py-name">options</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataField.setRequired"></a><div id="DataField.setRequired-def"><a name="L603"></a><tt class="py-lineno">603</tt> <a class="py-toggle" href="#" id="DataField.setRequired-toggle" onclick="return toggle('DataField.setRequired');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#setRequired">setRequired</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">req</tt><tt class="py-op">=</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.setRequired-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.setRequired-expanded"><a name="L604"></a><tt class="py-lineno">604</tt>  <tt class="py-line">        <tt class="py-docstring">""" Change the state of the 'required' flag. """</tt> </tt>
<a name="L605"></a><tt class="py-lineno">605</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">req</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-366" class="py-name"><a title="xmpp.simplexml.Node.setTag" class="py-name" href="#" onclick="return doclink('link-366', 'setTag', 'link-252');">setTag</a></tt><tt class="py-op">(</tt><tt class="py-string">'required'</tt><tt class="py-op">)</tt> </tt>
<a name="L606"></a><tt class="py-lineno">606</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L607"></a><tt class="py-lineno">607</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-367" class="py-name" targets="Method xmpp.simplexml.Node.delChild()=xmpp.simplexml.Node-class.html#delChild"><a title="xmpp.simplexml.Node.delChild" class="py-name" href="#" onclick="return doclink('link-367', 'delChild', 'link-367');">delChild</a></tt><tt class="py-op">(</tt><tt class="py-string">'required'</tt><tt class="py-op">)</tt> </tt>
<a name="L608"></a><tt class="py-lineno">608</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt> <tt class="py-name">ValueError</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> </tt>
</div><a name="DataField.isRequired"></a><div id="DataField.isRequired-def"><a name="L609"></a><tt class="py-lineno">609</tt> <a class="py-toggle" href="#" id="DataField.isRequired-toggle" onclick="return toggle('DataField.isRequired');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#isRequired">isRequired</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.isRequired-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.isRequired-expanded"><a name="L610"></a><tt class="py-lineno">610</tt>  <tt class="py-line">        <tt class="py-docstring">""" Returns in this field a required one. """</tt> </tt>
<a name="L611"></a><tt class="py-lineno">611</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-368" class="py-name"><a title="xmpp.simplexml.Node.getTag" class="py-name" href="#" onclick="return doclink('link-368', 'getTag', 'link-229');">getTag</a></tt><tt class="py-op">(</tt><tt class="py-string">'required'</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataField.setLabel"></a><div id="DataField.setLabel-def"><a name="L612"></a><tt class="py-lineno">612</tt> <a class="py-toggle" href="#" id="DataField.setLabel-toggle" onclick="return toggle('DataField.setLabel');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#setLabel">setLabel</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">label</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.setLabel-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.setLabel-expanded"><a name="L613"></a><tt class="py-lineno">613</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the label of this field. """</tt> </tt>
<a name="L614"></a><tt class="py-lineno">614</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-369" class="py-name"><a title="xmpp.simplexml.Node.setAttr" class="py-name" href="#" onclick="return doclink('link-369', 'setAttr', 'link-222');">setAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'label'</tt><tt class="py-op">,</tt><tt class="py-name">label</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataField.getLabel"></a><div id="DataField.getLabel-def"><a name="L615"></a><tt class="py-lineno">615</tt> <a class="py-toggle" href="#" id="DataField.getLabel-toggle" onclick="return toggle('DataField.getLabel');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#getLabel">getLabel</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.getLabel-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.getLabel-expanded"><a name="L616"></a><tt class="py-lineno">616</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the label of this field. """</tt> </tt>
<a name="L617"></a><tt class="py-lineno">617</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-370" class="py-name"><a title="xmpp.simplexml.Node.getAttr" class="py-name" href="#" onclick="return doclink('link-370', 'getAttr', 'link-216');">getAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'label'</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataField.setDesc"></a><div id="DataField.setDesc-def"><a name="L618"></a><tt class="py-lineno">618</tt> <a class="py-toggle" href="#" id="DataField.setDesc-toggle" onclick="return toggle('DataField.setDesc');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#setDesc">setDesc</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">desc</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.setDesc-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.setDesc-expanded"><a name="L619"></a><tt class="py-lineno">619</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the description of this field. """</tt> </tt>
<a name="L620"></a><tt class="py-lineno">620</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-371" class="py-name"><a title="xmpp.simplexml.Node.setTagData" class="py-name" href="#" onclick="return doclink('link-371', 'setTagData', 'link-266');">setTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'desc'</tt><tt class="py-op">,</tt><tt class="py-name">desc</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataField.getDesc"></a><div id="DataField.getDesc-def"><a name="L621"></a><tt class="py-lineno">621</tt> <a class="py-toggle" href="#" id="DataField.getDesc-toggle" onclick="return toggle('DataField.getDesc');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#getDesc">getDesc</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.getDesc-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.getDesc-expanded"><a name="L622"></a><tt class="py-lineno">622</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the description of this field. """</tt> </tt>
<a name="L623"></a><tt class="py-lineno">623</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-372" class="py-name"><a title="xmpp.simplexml.Node.getTagData" class="py-name" href="#" onclick="return doclink('link-372', 'getTagData', 'link-263');">getTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'desc'</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataField.setValue"></a><div id="DataField.setValue-def"><a name="L624"></a><tt class="py-lineno">624</tt> <a class="py-toggle" href="#" id="DataField.setValue-toggle" onclick="return toggle('DataField.setValue');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#setValue">setValue</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.setValue-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.setValue-expanded"><a name="L625"></a><tt class="py-lineno">625</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the value of this field. """</tt> </tt>
<a name="L626"></a><tt class="py-lineno">626</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-373" class="py-name"><a title="xmpp.simplexml.Node.setTagData" class="py-name" href="#" onclick="return doclink('link-373', 'setTagData', 'link-266');">setTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'value'</tt><tt class="py-op">,</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataField.getValue"></a><div id="DataField.getValue-def"><a name="L627"></a><tt class="py-lineno">627</tt> <a class="py-toggle" href="#" id="DataField.getValue-toggle" onclick="return toggle('DataField.getValue');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#getValue">getValue</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.getValue-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.getValue-expanded"><a name="L628"></a><tt class="py-lineno">628</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-374" class="py-name"><a title="xmpp.simplexml.Node.getTagData" class="py-name" href="#" onclick="return doclink('link-374', 'getTagData', 'link-263');">getTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'value'</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataField.setValues"></a><div id="DataField.setValues-def"><a name="L629"></a><tt class="py-lineno">629</tt> <a class="py-toggle" href="#" id="DataField.setValues-toggle" onclick="return toggle('DataField.setValues');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#setValues">setValues</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">lst</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.setValues-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.setValues-expanded"><a name="L630"></a><tt class="py-lineno">630</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the values of this field as values-list.</tt> </tt>
<a name="L631"></a><tt class="py-lineno">631</tt>  <tt class="py-line"><tt class="py-docstring">            Replaces all previous filed values! If you need to just add a value - use addValue method."""</tt> </tt>
<a name="L632"></a><tt class="py-lineno">632</tt>  <tt class="py-line">        <tt class="py-keyword">while</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-375" class="py-name"><a title="xmpp.simplexml.Node.getTag" class="py-name" href="#" onclick="return doclink('link-375', 'getTag', 'link-229');">getTag</a></tt><tt class="py-op">(</tt><tt class="py-string">'value'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-376" class="py-name"><a title="xmpp.simplexml.Node.delChild" class="py-name" href="#" onclick="return doclink('link-376', 'delChild', 'link-367');">delChild</a></tt><tt class="py-op">(</tt><tt class="py-string">'value'</tt><tt class="py-op">)</tt> </tt>
<a name="L633"></a><tt class="py-lineno">633</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">val</tt> <tt class="py-keyword">in</tt> <tt class="py-name">lst</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-377" class="py-name" targets="Method xmpp.protocol.DataField.addValue()=xmpp.protocol.DataField-class.html#addValue"><a title="xmpp.protocol.DataField.addValue" class="py-name" href="#" onclick="return doclink('link-377', 'addValue', 'link-377');">addValue</a></tt><tt class="py-op">(</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataField.addValue"></a><div id="DataField.addValue-def"><a name="L634"></a><tt class="py-lineno">634</tt> <a class="py-toggle" href="#" id="DataField.addValue-toggle" onclick="return toggle('DataField.addValue');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#addValue">addValue</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.addValue-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.addValue-expanded"><a name="L635"></a><tt class="py-lineno">635</tt>  <tt class="py-line">        <tt class="py-docstring">""" Add one more value to this field. Used in 'get' iq's or such."""</tt> </tt>
<a name="L636"></a><tt class="py-lineno">636</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-378" class="py-name"><a title="xmpp.simplexml.Node.addChild" class="py-name" href="#" onclick="return doclink('link-378', 'addChild', 'link-250');">addChild</a></tt><tt class="py-op">(</tt><tt class="py-string">'value'</tt><tt class="py-op">,</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-name">val</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataField.getValues"></a><div id="DataField.getValues-def"><a name="L637"></a><tt class="py-lineno">637</tt> <a class="py-toggle" href="#" id="DataField.getValues-toggle" onclick="return toggle('DataField.getValues');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#getValues">getValues</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.getValues-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.getValues-expanded"><a name="L638"></a><tt class="py-lineno">638</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the list of values associated with this field."""</tt> </tt>
<a name="L639"></a><tt class="py-lineno">639</tt>  <tt class="py-line">        <tt class="py-name">ret</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L640"></a><tt class="py-lineno">640</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">tag</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-379" class="py-name"><a title="xmpp.simplexml.Node.getTags" class="py-name" href="#" onclick="return doclink('link-379', 'getTags', 'link-213');">getTags</a></tt><tt class="py-op">(</tt><tt class="py-string">'value'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">ret</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">tag</tt><tt class="py-op">.</tt><tt id="link-380" class="py-name"><a title="xmpp.simplexml.Node.getData" class="py-name" href="#" onclick="return doclink('link-380', 'getData', 'link-233');">getData</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L641"></a><tt class="py-lineno">641</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">ret</tt> </tt>
</div><a name="DataField.getOptions"></a><div id="DataField.getOptions-def"><a name="L642"></a><tt class="py-lineno">642</tt> <a class="py-toggle" href="#" id="DataField.getOptions-toggle" onclick="return toggle('DataField.getOptions');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#getOptions">getOptions</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.getOptions-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.getOptions-expanded"><a name="L643"></a><tt class="py-lineno">643</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return label-option pairs list associated with this field."""</tt> </tt>
<a name="L644"></a><tt class="py-lineno">644</tt>  <tt class="py-line">        <tt class="py-name">ret</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L645"></a><tt class="py-lineno">645</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">tag</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-381" class="py-name"><a title="xmpp.simplexml.Node.getTags" class="py-name" href="#" onclick="return doclink('link-381', 'getTags', 'link-213');">getTags</a></tt><tt class="py-op">(</tt><tt class="py-string">'option'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">ret</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-name">tag</tt><tt class="py-op">.</tt><tt id="link-382" class="py-name"><a title="xmpp.simplexml.Node.getAttr" class="py-name" href="#" onclick="return doclink('link-382', 'getAttr', 'link-216');">getAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'label'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">tag</tt><tt class="py-op">.</tt><tt id="link-383" class="py-name"><a title="xmpp.simplexml.Node.getTagData" class="py-name" href="#" onclick="return doclink('link-383', 'getTagData', 'link-263');">getTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'value'</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L646"></a><tt class="py-lineno">646</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">ret</tt> </tt>
</div><a name="DataField.setOptions"></a><div id="DataField.setOptions-def"><a name="L647"></a><tt class="py-lineno">647</tt> <a class="py-toggle" href="#" id="DataField.setOptions-toggle" onclick="return toggle('DataField.setOptions');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#setOptions">setOptions</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">lst</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.setOptions-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.setOptions-expanded"><a name="L648"></a><tt class="py-lineno">648</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set label-option pairs list associated with this field."""</tt> </tt>
<a name="L649"></a><tt class="py-lineno">649</tt>  <tt class="py-line">        <tt class="py-keyword">while</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-384" class="py-name"><a title="xmpp.simplexml.Node.getTag" class="py-name" href="#" onclick="return doclink('link-384', 'getTag', 'link-229');">getTag</a></tt><tt class="py-op">(</tt><tt class="py-string">'option'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-385" class="py-name"><a title="xmpp.simplexml.Node.delChild" class="py-name" href="#" onclick="return doclink('link-385', 'delChild', 'link-367');">delChild</a></tt><tt class="py-op">(</tt><tt class="py-string">'option'</tt><tt class="py-op">)</tt> </tt>
<a name="L650"></a><tt class="py-lineno">650</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">opt</tt> <tt class="py-keyword">in</tt> <tt class="py-name">lst</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-386" class="py-name" targets="Method xmpp.protocol.DataField.addOption()=xmpp.protocol.DataField-class.html#addOption"><a title="xmpp.protocol.DataField.addOption" class="py-name" href="#" onclick="return doclink('link-386', 'addOption', 'link-386');">addOption</a></tt><tt class="py-op">(</tt><tt class="py-name">opt</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataField.addOption"></a><div id="DataField.addOption-def"><a name="L651"></a><tt class="py-lineno">651</tt> <a class="py-toggle" href="#" id="DataField.addOption-toggle" onclick="return toggle('DataField.addOption');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#addOption">addOption</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">opt</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.addOption-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.addOption-expanded"><a name="L652"></a><tt class="py-lineno">652</tt>  <tt class="py-line">        <tt class="py-docstring">""" Add one more label-option pair to this field."""</tt> </tt>
<a name="L653"></a><tt class="py-lineno">653</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">opt</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-name">str</tt><tt class="py-op">,</tt><tt class="py-name">unicode</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-387" class="py-name"><a title="xmpp.simplexml.Node.addChild" class="py-name" href="#" onclick="return doclink('link-387', 'addChild', 'link-250');">addChild</a></tt><tt class="py-op">(</tt><tt class="py-string">'option'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-388" class="py-name"><a title="xmpp.simplexml.Node.setTagData" class="py-name" href="#" onclick="return doclink('link-388', 'setTagData', 'link-266');">setTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'value'</tt><tt class="py-op">,</tt><tt class="py-name">opt</tt><tt class="py-op">)</tt> </tt>
<a name="L654"></a><tt class="py-lineno">654</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-389" class="py-name"><a title="xmpp.simplexml.Node.addChild" class="py-name" href="#" onclick="return doclink('link-389', 'addChild', 'link-250');">addChild</a></tt><tt class="py-op">(</tt><tt class="py-string">'option'</tt><tt class="py-op">,</tt><tt class="py-op">{</tt><tt class="py-string">'label'</tt><tt class="py-op">:</tt><tt class="py-name">opt</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">}</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-390" class="py-name"><a title="xmpp.simplexml.Node.setTagData" class="py-name" href="#" onclick="return doclink('link-390', 'setTagData', 'link-266');">setTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'value'</tt><tt class="py-op">,</tt><tt class="py-name">opt</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataField.getType"></a><div id="DataField.getType-def"><a name="L655"></a><tt class="py-lineno">655</tt> <a class="py-toggle" href="#" id="DataField.getType-toggle" onclick="return toggle('DataField.getType');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#getType">getType</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.getType-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.getType-expanded"><a name="L656"></a><tt class="py-lineno">656</tt>  <tt class="py-line">        <tt class="py-docstring">""" Get type of this field. """</tt> </tt>
<a name="L657"></a><tt class="py-lineno">657</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-391" class="py-name"><a title="xmpp.simplexml.Node.getAttr" class="py-name" href="#" onclick="return doclink('link-391', 'getAttr', 'link-216');">getAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'type'</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataField.setType"></a><div id="DataField.setType-def"><a name="L658"></a><tt class="py-lineno">658</tt> <a class="py-toggle" href="#" id="DataField.setType-toggle" onclick="return toggle('DataField.setType');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#setType">setType</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.setType-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.setType-expanded"><a name="L659"></a><tt class="py-lineno">659</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set type of this field. """</tt> </tt>
<a name="L660"></a><tt class="py-lineno">660</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-392" class="py-name"><a title="xmpp.simplexml.Node.setAttr" class="py-name" href="#" onclick="return doclink('link-392', 'setAttr', 'link-222');">setAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'type'</tt><tt class="py-op">,</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataField.getVar"></a><div id="DataField.getVar-def"><a name="L661"></a><tt class="py-lineno">661</tt> <a class="py-toggle" href="#" id="DataField.getVar-toggle" onclick="return toggle('DataField.getVar');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#getVar">getVar</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.getVar-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.getVar-expanded"><a name="L662"></a><tt class="py-lineno">662</tt>  <tt class="py-line">        <tt class="py-docstring">""" Get 'var' attribute value of this field. """</tt> </tt>
<a name="L663"></a><tt class="py-lineno">663</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-393" class="py-name"><a title="xmpp.simplexml.Node.getAttr" class="py-name" href="#" onclick="return doclink('link-393', 'getAttr', 'link-216');">getAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'var'</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataField.setVar"></a><div id="DataField.setVar-def"><a name="L664"></a><tt class="py-lineno">664</tt> <a class="py-toggle" href="#" id="DataField.setVar-toggle" onclick="return toggle('DataField.setVar');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataField-class.html#setVar">setVar</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataField.setVar-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataField.setVar-expanded"><a name="L665"></a><tt class="py-lineno">665</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set 'var' attribute value of this field. """</tt> </tt>
<a name="L666"></a><tt class="py-lineno">666</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-394" class="py-name"><a title="xmpp.simplexml.Node.setAttr" class="py-name" href="#" onclick="return doclink('link-394', 'setAttr', 'link-222');">setAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'var'</tt><tt class="py-op">,</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L667"></a><tt class="py-lineno">667</tt>  <tt class="py-line"> </tt>
<a name="DataForm"></a><div id="DataForm-def"><a name="L668"></a><tt class="py-lineno">668</tt> <a class="py-toggle" href="#" id="DataForm-toggle" onclick="return toggle('DataForm');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="xmpp.protocol.DataForm-class.html">DataForm</a><tt class="py-op">(</tt><tt class="py-base-class">Node</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataForm-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="DataForm-expanded"><a name="L669"></a><tt class="py-lineno">669</tt>  <tt class="py-line">    <tt class="py-docstring">""" DataForm class. Used for manipulating dataforms in XMPP.</tt> </tt>
<a name="L670"></a><tt class="py-lineno">670</tt>  <tt class="py-line"><tt class="py-docstring">        Relevant XEPs: 0004, 0068, 0122.</tt> </tt>
<a name="L671"></a><tt class="py-lineno">671</tt>  <tt class="py-line"><tt class="py-docstring">        Can be used in disco, pub-sub and many other applications."""</tt> </tt>
<a name="DataForm.__init__"></a><div id="DataForm.__init__-def"><a name="L672"></a><tt class="py-lineno">672</tt> <a class="py-toggle" href="#" id="DataForm.__init__-toggle" onclick="return toggle('DataForm.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataForm-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">typ</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-param">title</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">node</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataForm.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataForm.__init__-expanded"><a name="L673"></a><tt class="py-lineno">673</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L674"></a><tt class="py-lineno">674</tt>  <tt class="py-line"><tt class="py-docstring">            Create new dataform of type 'typ'. 'data' is the list of DataField</tt> </tt>
<a name="L675"></a><tt class="py-lineno">675</tt>  <tt class="py-line"><tt class="py-docstring">            instances that this dataform contains, 'title' - the title string.</tt> </tt>
<a name="L676"></a><tt class="py-lineno">676</tt>  <tt class="py-line"><tt class="py-docstring">            You can specify the 'node' argument as the other node to be used as</tt> </tt>
<a name="L677"></a><tt class="py-lineno">677</tt>  <tt class="py-line"><tt class="py-docstring">            base for constructing this dataform.</tt> </tt>
<a name="L678"></a><tt class="py-lineno">678</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L679"></a><tt class="py-lineno">679</tt>  <tt class="py-line"><tt class="py-docstring">            title and instructions is optional and SHOULD NOT contain newlines.</tt> </tt>
<a name="L680"></a><tt class="py-lineno">680</tt>  <tt class="py-line"><tt class="py-docstring">            Several instructions MAY be present.</tt> </tt>
<a name="L681"></a><tt class="py-lineno">681</tt>  <tt class="py-line"><tt class="py-docstring">            'typ' can be one of ('form' | 'submit' | 'cancel' | 'result' )</tt> </tt>
<a name="L682"></a><tt class="py-lineno">682</tt>  <tt class="py-line"><tt class="py-docstring">            'typ' of reply iq can be ( 'result' | 'set' | 'set' | 'result' ) respectively.</tt> </tt>
<a name="L683"></a><tt class="py-lineno">683</tt>  <tt class="py-line"><tt class="py-docstring">            'cancel' form can not contain any fields. All other forms contains AT LEAST one field.</tt> </tt>
<a name="L684"></a><tt class="py-lineno">684</tt>  <tt class="py-line"><tt class="py-docstring">            'title' MAY be included in forms of type "form" and "result"</tt> </tt>
<a name="L685"></a><tt class="py-lineno">685</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L686"></a><tt class="py-lineno">686</tt>  <tt class="py-line">        <tt id="link-395" class="py-name"><a title="xmpp.simplexml.Node" class="py-name" href="#" onclick="return doclink('link-395', 'Node', 'link-1');">Node</a></tt><tt class="py-op">.</tt><tt id="link-396" class="py-name"><a title="xmpp.auth.Bind.__init__
xmpp.auth.ComponentBind.__init__
xmpp.auth.NonSASL.__init__
xmpp.auth.SASL.__init__
xmpp.browser.Browser.__init__
xmpp.client.CommonClient.__init__
xmpp.client.Component.__init__
xmpp.client.PlugIn.__init__
xmpp.commands.Command_Handler_Prototype.__init__
xmpp.commands.Commands.__init__
xmpp.commands.TestCommand.__init__
xmpp.debug.Debug.__init__
xmpp.debug.NoDebug.__init__
xmpp.dispatcher.Dispatcher.__init__
xmpp.filetransfer.IBB.__init__
xmpp.protocol.DataField.__init__
xmpp.protocol.DataForm.__init__
xmpp.protocol.Error.__init__
xmpp.protocol.ErrorNode.__init__
xmpp.protocol.Iq.__init__
xmpp.protocol.JID.__init__
xmpp.protocol.Message.__init__
xmpp.protocol.Presence.__init__
xmpp.protocol.Protocol.__init__
xmpp.roster.Roster.__init__
xmpp.session.Session.__init__
xmpp.simplexml.Node.__init__
xmpp.simplexml.NodeBuilder.__init__
xmpp.simplexml.T.__init__
xmpp.transports.HTTPPROXYsocket.__init__
xmpp.transports.TCPsocket.__init__
xmpp.transports.error.__init__" class="py-name" href="#" onclick="return doclink('link-396', '__init__', 'link-208');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-string">'x'</tt><tt class="py-op">,</tt><tt class="py-name">node</tt><tt class="py-op">=</tt><tt class="py-name">node</tt><tt class="py-op">)</tt> </tt>
<a name="L687"></a><tt class="py-lineno">687</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">node</tt><tt class="py-op">:</tt> </tt>
<a name="L688"></a><tt class="py-lineno">688</tt>  <tt class="py-line">            <tt class="py-name">newkids</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L689"></a><tt class="py-lineno">689</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">n</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-397" class="py-name"><a title="xmpp.simplexml.Node.getChildren" class="py-name" href="#" onclick="return doclink('link-397', 'getChildren', 'link-230');">getChildren</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L690"></a><tt class="py-lineno">690</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">n</tt><tt class="py-op">.</tt><tt id="link-398" class="py-name"><a title="xmpp.roster.Roster.getName
xmpp.simplexml.Node.getName" class="py-name" href="#" onclick="return doclink('link-398', 'getName', 'link-231');">getName</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-string">'field'</tt><tt class="py-op">:</tt> <tt class="py-name">newkids</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-399" class="py-name" targets="Class xmpp.protocol.DataField=xmpp.protocol.DataField-class.html"><a title="xmpp.protocol.DataField" class="py-name" href="#" onclick="return doclink('link-399', 'DataField', 'link-399');">DataField</a></tt><tt class="py-op">(</tt><tt class="py-name">node</tt><tt class="py-op">=</tt><tt class="py-name">n</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L691"></a><tt class="py-lineno">691</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">newkids</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">n</tt><tt class="py-op">)</tt> </tt>
<a name="L692"></a><tt class="py-lineno">692</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">kids</tt><tt class="py-op">=</tt><tt class="py-name">newkids</tt> </tt>
<a name="L693"></a><tt class="py-lineno">693</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">typ</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-400" class="py-name"><a title="xmpp.protocol.DataField.setType
xmpp.protocol.DataForm.setType
xmpp.protocol.Protocol.setType" class="py-name" href="#" onclick="return doclink('link-400', 'setType', 'link-249');">setType</a></tt><tt class="py-op">(</tt><tt class="py-name">typ</tt><tt class="py-op">)</tt> </tt>
<a name="L694"></a><tt class="py-lineno">694</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-401" class="py-name"><a title="xmpp.simplexml.Node.setNamespace" class="py-name" href="#" onclick="return doclink('link-401', 'setNamespace', 'link-210');">setNamespace</a></tt><tt class="py-op">(</tt><tt id="link-402" class="py-name"><a title="xmpp.protocol.NS_DATA" class="py-name" href="#" onclick="return doclink('link-402', 'NS_DATA', 'link-84');">NS_DATA</a></tt><tt class="py-op">)</tt> </tt>
<a name="L695"></a><tt class="py-lineno">695</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">title</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-403" class="py-name" targets="Method xmpp.protocol.DataForm.setTitle()=xmpp.protocol.DataForm-class.html#setTitle"><a title="xmpp.protocol.DataForm.setTitle" class="py-name" href="#" onclick="return doclink('link-403', 'setTitle', 'link-403');">setTitle</a></tt><tt class="py-op">(</tt><tt class="py-name">title</tt><tt class="py-op">)</tt> </tt>
<a name="L696"></a><tt class="py-lineno">696</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">data</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L697"></a><tt class="py-lineno">697</tt>  <tt class="py-line">            <tt class="py-name">newdata</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L698"></a><tt class="py-lineno">698</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-404" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-404', 'name', 'link-167');">name</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">data</tt><tt class="py-op">.</tt><tt id="link-405" class="py-name"><a title="xmpp.roster.Roster.keys" class="py-name" href="#" onclick="return doclink('link-405', 'keys', 'link-236');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">newdata</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-406" class="py-name"><a title="xmpp.protocol.DataField" class="py-name" href="#" onclick="return doclink('link-406', 'DataField', 'link-399');">DataField</a></tt><tt class="py-op">(</tt><tt id="link-407" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-407', 'name', 'link-167');">name</a></tt><tt class="py-op">,</tt><tt class="py-name">data</tt><tt class="py-op">[</tt><tt id="link-408" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-408', 'name', 'link-167');">name</a></tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L699"></a><tt class="py-lineno">699</tt>  <tt class="py-line">            <tt class="py-name">data</tt><tt class="py-op">=</tt><tt class="py-name">newdata</tt> </tt>
<a name="L700"></a><tt class="py-lineno">700</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">child</tt> <tt class="py-keyword">in</tt> <tt class="py-name">data</tt><tt class="py-op">:</tt> </tt>
<a name="L701"></a><tt class="py-lineno">701</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">child</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-string">''</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-string">u''</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-409" class="py-name" targets="Method xmpp.protocol.DataForm.addInstructions()=xmpp.protocol.DataForm-class.html#addInstructions"><a title="xmpp.protocol.DataForm.addInstructions" class="py-name" href="#" onclick="return doclink('link-409', 'addInstructions', 'link-409');">addInstructions</a></tt><tt class="py-op">(</tt><tt class="py-name">child</tt><tt class="py-op">)</tt> </tt>
<a name="L702"></a><tt class="py-lineno">702</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">child</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">==</tt><tt class="py-string">'DataField'</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">kids</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">child</tt><tt class="py-op">)</tt> </tt>
<a name="L703"></a><tt class="py-lineno">703</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">kids</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-410" class="py-name"><a title="xmpp.protocol.DataField" class="py-name" href="#" onclick="return doclink('link-410', 'DataField', 'link-399');">DataField</a></tt><tt class="py-op">(</tt><tt class="py-name">node</tt><tt class="py-op">=</tt><tt class="py-name">child</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataForm.getType"></a><div id="DataForm.getType-def"><a name="L704"></a><tt class="py-lineno">704</tt> <a class="py-toggle" href="#" id="DataForm.getType-toggle" onclick="return toggle('DataForm.getType');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataForm-class.html#getType">getType</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataForm.getType-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataForm.getType-expanded"><a name="L705"></a><tt class="py-lineno">705</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the type of dataform. """</tt> </tt>
<a name="L706"></a><tt class="py-lineno">706</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-411" class="py-name"><a title="xmpp.simplexml.Node.getAttr" class="py-name" href="#" onclick="return doclink('link-411', 'getAttr', 'link-216');">getAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'type'</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataForm.setType"></a><div id="DataForm.setType-def"><a name="L707"></a><tt class="py-lineno">707</tt> <a class="py-toggle" href="#" id="DataForm.setType-toggle" onclick="return toggle('DataForm.setType');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataForm-class.html#setType">setType</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">typ</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataForm.setType-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataForm.setType-expanded"><a name="L708"></a><tt class="py-lineno">708</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the type of dataform. """</tt> </tt>
<a name="L709"></a><tt class="py-lineno">709</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-412" class="py-name"><a title="xmpp.simplexml.Node.setAttr" class="py-name" href="#" onclick="return doclink('link-412', 'setAttr', 'link-222');">setAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'type'</tt><tt class="py-op">,</tt><tt class="py-name">typ</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataForm.getTitle"></a><div id="DataForm.getTitle-def"><a name="L710"></a><tt class="py-lineno">710</tt> <a class="py-toggle" href="#" id="DataForm.getTitle-toggle" onclick="return toggle('DataForm.getTitle');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataForm-class.html#getTitle">getTitle</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataForm.getTitle-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataForm.getTitle-expanded"><a name="L711"></a><tt class="py-lineno">711</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the title of dataform. """</tt> </tt>
<a name="L712"></a><tt class="py-lineno">712</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-413" class="py-name"><a title="xmpp.simplexml.Node.getTagData" class="py-name" href="#" onclick="return doclink('link-413', 'getTagData', 'link-263');">getTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'title'</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataForm.setTitle"></a><div id="DataForm.setTitle-def"><a name="L713"></a><tt class="py-lineno">713</tt> <a class="py-toggle" href="#" id="DataForm.setTitle-toggle" onclick="return toggle('DataForm.setTitle');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataForm-class.html#setTitle">setTitle</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataForm.setTitle-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataForm.setTitle-expanded"><a name="L714"></a><tt class="py-lineno">714</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the title of dataform. """</tt> </tt>
<a name="L715"></a><tt class="py-lineno">715</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-414" class="py-name"><a title="xmpp.simplexml.Node.setTagData" class="py-name" href="#" onclick="return doclink('link-414', 'setTagData', 'link-266');">setTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'title'</tt><tt class="py-op">,</tt><tt class="py-name">text</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataForm.getInstructions"></a><div id="DataForm.getInstructions-def"><a name="L716"></a><tt class="py-lineno">716</tt> <a class="py-toggle" href="#" id="DataForm.getInstructions-toggle" onclick="return toggle('DataForm.getInstructions');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataForm-class.html#getInstructions">getInstructions</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataForm.getInstructions-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataForm.getInstructions-expanded"><a name="L717"></a><tt class="py-lineno">717</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the instructions of dataform. """</tt> </tt>
<a name="L718"></a><tt class="py-lineno">718</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-415" class="py-name"><a title="xmpp.simplexml.Node.getTagData" class="py-name" href="#" onclick="return doclink('link-415', 'getTagData', 'link-263');">getTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'instructions'</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataForm.setInstructions"></a><div id="DataForm.setInstructions-def"><a name="L719"></a><tt class="py-lineno">719</tt> <a class="py-toggle" href="#" id="DataForm.setInstructions-toggle" onclick="return toggle('DataForm.setInstructions');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataForm-class.html#setInstructions">setInstructions</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataForm.setInstructions-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataForm.setInstructions-expanded"><a name="L720"></a><tt class="py-lineno">720</tt>  <tt class="py-line">        <tt class="py-docstring">""" Set the instructions of dataform. """</tt> </tt>
<a name="L721"></a><tt class="py-lineno">721</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-416" class="py-name"><a title="xmpp.simplexml.Node.setTagData" class="py-name" href="#" onclick="return doclink('link-416', 'setTagData', 'link-266');">setTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'instructions'</tt><tt class="py-op">,</tt><tt class="py-name">text</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataForm.addInstructions"></a><div id="DataForm.addInstructions-def"><a name="L722"></a><tt class="py-lineno">722</tt> <a class="py-toggle" href="#" id="DataForm.addInstructions-toggle" onclick="return toggle('DataForm.addInstructions');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataForm-class.html#addInstructions">addInstructions</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataForm.addInstructions-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataForm.addInstructions-expanded"><a name="L723"></a><tt class="py-lineno">723</tt>  <tt class="py-line">        <tt class="py-docstring">""" Add one more instruction to the dataform. """</tt> </tt>
<a name="L724"></a><tt class="py-lineno">724</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-417" class="py-name"><a title="xmpp.simplexml.Node.addChild" class="py-name" href="#" onclick="return doclink('link-417', 'addChild', 'link-250');">addChild</a></tt><tt class="py-op">(</tt><tt class="py-string">'instructions'</tt><tt class="py-op">,</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-name">text</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataForm.getField"></a><div id="DataForm.getField-def"><a name="L725"></a><tt class="py-lineno">725</tt> <a class="py-toggle" href="#" id="DataForm.getField-toggle" onclick="return toggle('DataForm.getField');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataForm-class.html#getField">getField</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataForm.getField-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataForm.getField-expanded"><a name="L726"></a><tt class="py-lineno">726</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the datafield object with name 'name' (if exists). """</tt> </tt>
<a name="L727"></a><tt class="py-lineno">727</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-418" class="py-name"><a title="xmpp.simplexml.Node.getTag" class="py-name" href="#" onclick="return doclink('link-418', 'getTag', 'link-229');">getTag</a></tt><tt class="py-op">(</tt><tt class="py-string">'field'</tt><tt class="py-op">,</tt><tt class="py-name">attrs</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-string">'var'</tt><tt class="py-op">:</tt><tt id="link-419" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-419', 'name', 'link-167');">name</a></tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataForm.setField"></a><div id="DataForm.setField-def"><a name="L728"></a><tt class="py-lineno">728</tt> <a class="py-toggle" href="#" id="DataForm.setField-toggle" onclick="return toggle('DataForm.setField');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataForm-class.html#setField">setField</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataForm.setField-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataForm.setField-expanded"><a name="L729"></a><tt class="py-lineno">729</tt>  <tt class="py-line">        <tt class="py-docstring">""" Create if nessessary or get the existing datafield object with name 'name' and return it. """</tt> </tt>
<a name="L730"></a><tt class="py-lineno">730</tt>  <tt class="py-line">        <tt class="py-name">f</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-420" class="py-name" targets="Method xmpp.protocol.DataForm.getField()=xmpp.protocol.DataForm-class.html#getField"><a title="xmpp.protocol.DataForm.getField" class="py-name" href="#" onclick="return doclink('link-420', 'getField', 'link-420');">getField</a></tt><tt class="py-op">(</tt><tt id="link-421" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-421', 'name', 'link-167');">name</a></tt><tt class="py-op">)</tt> </tt>
<a name="L731"></a><tt class="py-lineno">731</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">f</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">f</tt> </tt>
<a name="L732"></a><tt class="py-lineno">732</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-422" class="py-name"><a title="xmpp.simplexml.Node.addChild" class="py-name" href="#" onclick="return doclink('link-422', 'addChild', 'link-250');">addChild</a></tt><tt class="py-op">(</tt><tt class="py-name">node</tt><tt class="py-op">=</tt><tt id="link-423" class="py-name"><a title="xmpp.protocol.DataField" class="py-name" href="#" onclick="return doclink('link-423', 'DataField', 'link-399');">DataField</a></tt><tt class="py-op">(</tt><tt id="link-424" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-424', 'name', 'link-167');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataForm.asDict"></a><div id="DataForm.asDict-def"><a name="L733"></a><tt class="py-lineno">733</tt> <a class="py-toggle" href="#" id="DataForm.asDict-toggle" onclick="return toggle('DataForm.asDict');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataForm-class.html#asDict">asDict</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataForm.asDict-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataForm.asDict-expanded"><a name="L734"></a><tt class="py-lineno">734</tt>  <tt class="py-line">        <tt class="py-docstring">""" Represent dataform as simple dictionary mapping of datafield names to their values."""</tt> </tt>
<a name="L735"></a><tt class="py-lineno">735</tt>  <tt class="py-line">        <tt class="py-name">ret</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L736"></a><tt class="py-lineno">736</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">field</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-425" class="py-name"><a title="xmpp.simplexml.Node.getTags" class="py-name" href="#" onclick="return doclink('link-425', 'getTags', 'link-213');">getTags</a></tt><tt class="py-op">(</tt><tt class="py-string">'field'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L737"></a><tt class="py-lineno">737</tt>  <tt class="py-line">            <tt id="link-426" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-426', 'name', 'link-167');">name</a></tt><tt class="py-op">=</tt><tt class="py-name">field</tt><tt class="py-op">.</tt><tt id="link-427" class="py-name"><a title="xmpp.simplexml.Node.getAttr" class="py-name" href="#" onclick="return doclink('link-427', 'getAttr', 'link-216');">getAttr</a></tt><tt class="py-op">(</tt><tt class="py-string">'var'</tt><tt class="py-op">)</tt> </tt>
<a name="L738"></a><tt class="py-lineno">738</tt>  <tt class="py-line">            <tt class="py-name">typ</tt><tt class="py-op">=</tt><tt class="py-name">field</tt><tt class="py-op">.</tt><tt id="link-428" class="py-name"><a title="xmpp.protocol.DataField.getType
xmpp.protocol.DataForm.getType
xmpp.protocol.Protocol.getType" class="py-name" href="#" onclick="return doclink('link-428', 'getType', 'link-171');">getType</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L739"></a><tt class="py-lineno">739</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">typ</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt><tt class="py-name">unicode</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">typ</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">6</tt><tt class="py-op">:</tt><tt class="py-op">]</tt><tt class="py-op">==</tt><tt class="py-string">'-multi'</tt><tt class="py-op">:</tt> </tt>
<a name="L740"></a><tt class="py-lineno">740</tt>  <tt class="py-line">                <tt class="py-name">val</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L741"></a><tt class="py-lineno">741</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">field</tt><tt class="py-op">.</tt><tt id="link-429" class="py-name"><a title="xmpp.simplexml.Node.getTags" class="py-name" href="#" onclick="return doclink('link-429', 'getTags', 'link-213');">getTags</a></tt><tt class="py-op">(</tt><tt class="py-string">'value'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">val</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">i</tt><tt class="py-op">.</tt><tt id="link-430" class="py-name"><a title="xmpp.simplexml.Node.getData" class="py-name" href="#" onclick="return doclink('link-430', 'getData', 'link-233');">getData</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L742"></a><tt class="py-lineno">742</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">val</tt><tt class="py-op">=</tt><tt class="py-name">field</tt><tt class="py-op">.</tt><tt id="link-431" class="py-name"><a title="xmpp.simplexml.Node.getTagData" class="py-name" href="#" onclick="return doclink('link-431', 'getTagData', 'link-263');">getTagData</a></tt><tt class="py-op">(</tt><tt class="py-string">'value'</tt><tt class="py-op">)</tt> </tt>
<a name="L743"></a><tt class="py-lineno">743</tt>  <tt class="py-line">            <tt class="py-name">ret</tt><tt class="py-op">[</tt><tt id="link-432" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-432', 'name', 'link-167');">name</a></tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">val</tt> </tt>
<a name="L744"></a><tt class="py-lineno">744</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-433" class="py-name"><a title="xmpp.simplexml.Node.getTag" class="py-name" href="#" onclick="return doclink('link-433', 'getTag', 'link-229');">getTag</a></tt><tt class="py-op">(</tt><tt class="py-string">'instructions'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">ret</tt><tt class="py-op">[</tt><tt class="py-string">'instructions'</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-434" class="py-name" targets="Method xmpp.protocol.DataForm.getInstructions()=xmpp.protocol.DataForm-class.html#getInstructions"><a title="xmpp.protocol.DataForm.getInstructions" class="py-name" href="#" onclick="return doclink('link-434', 'getInstructions', 'link-434');">getInstructions</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L745"></a><tt class="py-lineno">745</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">ret</tt> </tt>
</div><a name="DataForm.__getitem__"></a><div id="DataForm.__getitem__-def"><a name="L746"></a><tt class="py-lineno">746</tt> <a class="py-toggle" href="#" id="DataForm.__getitem__-toggle" onclick="return toggle('DataForm.__getitem__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataForm-class.html#__getitem__">__getitem__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataForm.__getitem__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataForm.__getitem__-expanded"><a name="L747"></a><tt class="py-lineno">747</tt>  <tt class="py-line">        <tt class="py-docstring">""" Simple dictionary interface for getting datafields values by their names."""</tt> </tt>
<a name="L748"></a><tt class="py-lineno">748</tt>  <tt class="py-line">        <tt class="py-name">item</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-435" class="py-name"><a title="xmpp.protocol.DataForm.getField" class="py-name" href="#" onclick="return doclink('link-435', 'getField', 'link-420');">getField</a></tt><tt class="py-op">(</tt><tt id="link-436" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-436', 'name', 'link-167');">name</a></tt><tt class="py-op">)</tt> </tt>
<a name="L749"></a><tt class="py-lineno">749</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">item</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">item</tt><tt class="py-op">.</tt><tt id="link-437" class="py-name" targets="Method xmpp.protocol.DataField.getValue()=xmpp.protocol.DataField-class.html#getValue"><a title="xmpp.protocol.DataField.getValue" class="py-name" href="#" onclick="return doclink('link-437', 'getValue', 'link-437');">getValue</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L750"></a><tt class="py-lineno">750</tt>  <tt class="py-line">        <tt class="py-keyword">raise</tt> <tt class="py-name">IndexError</tt><tt class="py-op">(</tt><tt class="py-string">'No such field'</tt><tt class="py-op">)</tt> </tt>
</div><a name="DataForm.__setitem__"></a><div id="DataForm.__setitem__-def"><a name="L751"></a><tt class="py-lineno">751</tt> <a class="py-toggle" href="#" id="DataForm.__setitem__-toggle" onclick="return toggle('DataForm.__setitem__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="xmpp.protocol.DataForm-class.html#__setitem__">__setitem__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">name</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataForm.__setitem__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DataForm.__setitem__-expanded"><a name="L752"></a><tt class="py-lineno">752</tt>  <tt class="py-line">        <tt class="py-docstring">""" Simple dictionary interface for setting datafields values by their names."""</tt> </tt>
<a name="L753"></a><tt class="py-lineno">753</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-438" class="py-name" targets="Method xmpp.protocol.DataForm.setField()=xmpp.protocol.DataForm-class.html#setField"><a title="xmpp.protocol.DataForm.setField" class="py-name" href="#" onclick="return doclink('link-438', 'setField', 'link-438');">setField</a></tt><tt class="py-op">(</tt><tt id="link-439" class="py-name"><a title="xmpp.auth.name
xmpp.browser.name
xmpp.commands.Command_Handler_Prototype.name
xmpp.commands.TestCommand.name
xmpp.commands.name
xmpp.dispatcher.name
xmpp.features.name
xmpp.filetransfer.name
xmpp.name
xmpp.protocol.name
xmpp.roster.name
xmpp.session.name
xmpp.transports.name" class="py-name" href="#" onclick="return doclink('link-439', 'name', 'link-167');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-440" class="py-name"><a title="xmpp.protocol.DataField.setValue" class="py-name" href="#" onclick="return doclink('link-440', 'setValue', 'link-359');">setValue</a></tt><tt class="py-op">(</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L754"></a><tt class="py-lineno">754</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="xmpp-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0beta1 on Sat Dec 15 22:25:32 2007
    </td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
